LQDownloadManager is a download manager in Swift, support background mode.
Clone the repo, Run the example project.
CocoaPods 1.0.0+ is required to build LQDownloadManager
To integrate LQDownloadManager into your Xcode project using CocoaPods, specify it in your Podfile
:
pod "LQDownloadManager"
LQDownloadManager.shared.download("#download file url string#", progress: {
progress in
print("progress: \(progress)")
}) {
status in
switch status {
case .start:
// ...
case .suspend:
// ...
case .complete:
// ...
case .failed:
// ...
}
}
Email: [email protected] weibo: 青木KON
LQDownloadManager is available under the MIT license. See the LICENSE file for more info.