A Swift framework for zipping and unzipping files. Simple and quick to use. Built on top of [minizip](https://github.com/nmoinvaz/minizip).
A Swift framework for zipping and unzipping files. Simple and quick to use. Built on top of [minizip](https://github.com/nmoinvaz/minizip).
...
@@ -18,7 +19,7 @@ import Zip
...
@@ -18,7 +19,7 @@ import Zip
The easiest way to use Zip is through quick functions. Both take local file paths as NSURLs, throw if an error is encountered and return an NSURL to the destination if successful.
The easiest way to use Zip is through quick functions. Both take local file paths as NSURLs, throw if an error is encountered and return an NSURL to the destination if successful.
letzipFilePath=tryZip.quickZipFiles([filePath],fileName:"archive")// Zip
letzipFilePath=tryZip.quickZipFiles([filePath],fileName:"archive")// Zip
}
}
...
@@ -32,14 +33,13 @@ catch {
...
@@ -32,14 +33,13 @@ catch {
For more advanced usage, Zip has functions that let you set custom destination paths, work with password protected zips and use a progress handling closure. These functions throw if there is an error but don't return.
For more advanced usage, Zip has functions that let you set custom destination paths, work with password protected zips and use a progress handling closure. These functions throw if there is an error but don't return.
### Setting up with [CocoaPods](http://cocoapods.org/?q=Zip)
### Setting up with [CocoaPods](http://cocoapods.org/?q=Zip)
```ruby
```ruby
source'https://github.com/CocoaPods/Specs.git'
source'https://github.com/CocoaPods/Specs.git'
pod'Zip','~> 0.5',:submodules=>true
pod'Zip','~> 0.6'
```
### Setting up with Carthage
[Carthage](https://github.com/Carthage/Carthage) is a decentralized dependency manager that automates the process of adding frameworks to your Cocoa application.
You can install Carthage with [Homebrew](http://brew.sh/) using the following command:
```bash
$ brew update
$ brew install carthage
```
To integrate Zip into your Xcode project using Carthage, specify it in your `Cartfile`: