Last active
May 31, 2016 09:59
-
-
Save lammertw/9d600b0321f7f8e7ebf897522a1fed80 to your computer and use it in GitHub Desktop.
PromiseKit extension on Digits by Fabric.io
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Foundation | |
import DigitsKit | |
import PromiseKit | |
extension Digits { | |
public func authenticateWithCompletion() -> Promise<DGTSession> { | |
return Promise(resolver: authenticateWithCompletion) | |
} | |
public func authenticateWithViewController(viewController: UIViewController?, configuration: DGTAuthenticationConfiguration) -> Promise<DGTSession> { | |
return Promise { authenticateWithViewController(viewController, configuration: configuration, completion: $0) } | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment