This download manager uses the URLSession api to download files.
To run the example project, clone the repo, and run
pod install from the Example directory first.
MZDownloadManager is available through CocoaPods. To install it, simply add the following line to your Podfile:
To install it by using Swift Package Manager:
New helper functions added to support downloading at custom path. Example project is also updated about the usage.
To download file at custom path you can use the following instance method of MZDownloadManager:
public func addDownloadTask(fileName: String, fileURL: String, destinationPath: String)
optional func downloadRequestDestinationDoestNotExists(downloadModel: MZDownloadModel, index: Int, location: NSURL)
Important: This delegate method will be called on the session's queue.
Muhammad Zeeshan, [email protected]
MZDownloadManager is available under the BSD license. See the LICENSE file for more info.