December 2018
Intermediate to advanced
414 pages
10h 19m
English
Google Promises is a rather recent player among Swift frameworks for async programming using futures and promises. You can add it as a dependency to your project using Swift Package Manager, CocoaPods, or Carthage. If you use Swift Package Manager, you can add the Promises dependency by including it in your Package.swift file, as in the following example:
let package = Package( // ... dependencies: [ .package(url: "https://github.com/google/promises.git", from: "1.2.3"), ], // ...)
If you use CocoaPods, just add the following to your Podfile:
pod 'PromisesSwift', '~> 1.2.3'
Then, refresh your dependencies by running the following:
pod install
Similarly, for Carthage, add the following to your Cartfile:
github "google/promises" ...
Read now
Unlock full access