The idea of that library to provide Swift wrappers around popular C minizip library
Zip operation
var config = Zip.Config()
config.srcs = [
folder1URL, file2URL, folder3URL, file4URL
]
config.dstURL = zipFileURL
config.password = passwordStringIfNeeded
let zip = Zip(config: config)
try zip.perform()
Unzip operation
var config = Unzip.Config()
config.srcURL = zipFileURL
config.dstURL = destinationDirURL
config.password = passwordStringIfNeeded
let unzip = Unzip(config: config)
try unzip.extract()
iOS 15.0, macOS 10.14
In the Xcode press File
-> Add Packages
-> In the search field insert https://github.com/iharkatkavets/SwiftMiniZip
. It might require to setup GitHub Account in the Xcode
Ihar Katkavets, [email protected]
SwiftMiniZip is available under the MIT license. See the LICENSE file for more info.