sahan
(Sahan Gurusinghe)
1
I have a developed iOS application which collects capture data from the front camera of an iPhoneX in a swift dictionary. This dictionary contains large sets of 32bit float values. If I save this dictionary as .plist it will become a larger file (like 1.5GB) so I need to save this dictionary as a binary file to reduce the size? How can I do this using swift? I'm new to iOS development so your help would be really appreciated.
stuchlej
(Mikoláš Stuchlík)
2
Hi. Have you tried set the PropertyListEncoder outputFormat to .binary? Apple Developer Documentation
1 Like