Latest 1.0.0
Homepage https://github.com/ntian2/NTDownload
License MIT
Platforms ios 8.0
Authors





NTDownlaod is a lightweight Swift 4 library for download files.

Features

  • [x] Support for resume breakpoint
  • [x] Download files when the app is in the background.
  • [x] URLSession -based networking.
  • [x] It can resume or pause any download tasks.
  • [x] This library contains only 4 files.

Requirements

  • iOS 8.0+
  • Swift 4

Installation

NTDownlaod is available through Cocoapods. So you can add the following line to your Podfile.

pod 'NTDownload'

Usages

let urlString = "url_of_you_file"
NTDownloadManager.shared.addDownloadTask(urlString: urlString)

You can also clone the repo, and run the example project.

GIF Demo

GIFDemo

License

NTDownload is released under the MIT license. See LICENSE for details.

Latest podspec

{
    "name": "NTDownload",
    "version": "1.0.0",
    "summary": "A lightweight Swift 4 library for download files",
    "homepage": "https://github.com/ntian2/NTDownload",
    "license": "MIT",
    "authors": {
        "ntian2": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/ntian2/NTDownload.git",
        "tag": "1.0.0"
    },
    "source_files": [
        "NTDownload",
        "NTDownload/download/NTDownload/*.swift"
    ],
    "pushed_with_swift_version": "4.0"
}

Pin It on Pinterest

Share This