Compression

RSS for tag

Enable your app to provide lossless compression when saving or sharing files and data using Compression.

Compression Documentation

Posts under Compression tag

2 Posts
Sort by:
Post marked as solved
3 Replies
776 Views
I am downloading image files which are in the zip format to a folder in my app files folder. When the folder is opened the file is shown as .zip and when selected it unzips and creates a new file. In my case it creates a jpg. leaving the zip file also. My question is, how do I unzip the file with swift since iOS appears to have the capability?
Posted
by
Post marked as solved
5 Replies
1.4k Views
The Archive Framework implements compression algorithms and supports for example the LZMA compression format. Unfortunately I was not able to find a way to generate a ZIP-kompatible archive using the Archive Framework though iOS / iPadOS seems to be able to do that, because the Files app and the Shortcuts app support this kind of compression. Is there a way on iOS/iPadOS to generate an LZMA compressed archive with ZIP container using only apple provided APIs or other system services? PS: I don't need full support for all possible ZIP features. I only need to create a simple archive containing some files which can be opened using any zip decompression program. https://developer.apple.com/documentation/accelerate/compressing_file_system_directories
Posted
by