December 2018
Intermediate to advanced
414 pages
10h 19m
English
PromiseKit is among the most successful promise frameworks for Swift, with over 900 forks at the time of writing. It employs a rather custom working for the functions that you use to build an asynchronous workflow, but it also includes a number of extensions that convert most Apple APIs to use promises. This is a big boon since, if the framework you choose does not include such conversion wrappers for you, you will need to create them on your own.
If you want to use PromiseKit, the first step is adding it as a dependency to your project. For the Swift Package Manager, this is what you should add to your Package.swift file:
let package = Package( // ... dependencies: [ .package(url: "https://github.com/mxcl/PromiseKit", majorVersion: ...
Read now
Unlock full access