I am using SSZipArchive to unzip files from a Url (http://www.colorado.edu/conflict/peace/download/peace.zip). For this I am using the function :
SSZipArchive.unzipFile(atPath: path, toDestination: documentsPath, progressHandler: {
- Is it possible to extract files from Url using
SSZipArchive? - Is yes, how do I pass Url in atPath ?
You can't directly unzip without downloading the file from the URL.
This is how I do this,
After downloading the content, unzip it where you want to.
I unzipped the file and stored it in the document directory
From there you can access the data of the file. Here I used third party frameworks Alamofire and swiftEventBus. Hope this works for you.