Getting Started

Deferred is designed to be used as an embedded framework on Apple platforms, which requires a minimum deployment target of iOS 8, macOS 10.10, watchOS 2.0, or tvOS 9.0.

Linux is also supported.

There are a few different options to install Deferred.

Carthage

Carthage is a decentralized, hands-off package manager built in Swift.

Add the following to your Cartfile:

github "bignerdranch/Deferred" ~> 4.0

Then run carthage update.

Follow the current instructions in Carthage’s README for up to date installation instructions.

CocoaPods

CocoaPods is a popular, Ruby-inspired Cocoa package manager.

Add the following to your Podfile:

pod 'BNRDeferred', '~> 4.0'

You will also need to make sure you’re opting into using frameworks:

use_frameworks!

Then run pod install.

Swift Package Manager

We include support for Swift Package Manager on 4.1 or greater toolchains.

Add us to your Package.swift:

// swift-tools-version:4.0
import PackageDescription

let package = Package(
    name: "My Extremely Nerdy App",
    dependencies: [
        .package(url: "https://github.com/bignerdranch/Deferred.git", from: "4.1.0"),
    ]
)