Swiftpack.co -  Package - lcharlick/DownloadManager
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
lcharlick/DownloadManager
A URLSession-based download manager in Swift.
.package(url: "https://github.com/lcharlick/DownloadManager.git", from: "1.0.0")

DownloadManager

A URLSession-based download manager in Swift.

Features

  • Support for background URLSessions
  • Downloads are pausable and cancellable
  • Progress can be tracked for the entire download manager, individual downloads, or a subset of downloads
  • Support for concurrent downloads
  • Easy integration with SwiftUI (see example project)
  • No external dependencies

Installation

Swift Package Manager

Create a Package.swift file.

import PackageDescription

let package = Package(
    name: "SampleProject",
    dependencies: [
        .Package(url: "https://github.com/lcharlick/DownloadManager.git" from: "1.0.0")
    ]
)

GitHub

link
Stars: 1
Last commit: 4 weeks ago

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco