Skip to content

Latest commit

 

History

History
44 lines (32 loc) · 1010 Bytes

README.md

File metadata and controls

44 lines (32 loc) · 1010 Bytes

SwiftMiniZip

The idea of that library to provide Swift wrappers around popular C minizip library

Example

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()

Requirements

iOS 15.0, macOS 10.14

Installation

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

Author

Ihar Katkavets, [email protected]

License

SwiftMiniZip is available under the MIT license. See the LICENSE file for more info.