One of the Promises in Swift world just for fun :-)
- Swift 2.0
- No dependencies and fits into one file
- 100% test coverage
- Copy
OnePromise.swift
into your project. - The
Promise
class is one and only one public. If you dislike, rename it as you want. - Your project enforces "100% test coverage"?? Copy
OnePromiseTests.swift
. Please removeimport OnePromise
line.
OnePromise is also available through CocoaPods. To install it, simply add the following line to your Podfile:
platform :ios, "8.0"
use_frameworks!
pod "OnePromise"
In order to use CocoaPods, you must explicity include use_frameworks!
and specify
platform :ios
version to 8.0 at minimum (though OnePromise works on iOS7).
Read CocoaPods blog entry for more details.
Takanori Ishikawa
MIT