SPTouchID
Example
To run the example project, clone the repo, and run pod install
from the Example directory first.
/// biometric class instance var biometricAuth = SPAuthentication() biometricAuth.delegate = self biometricAuth.start()
// MARK:- Authentication delegates extension SPTouchIDViewController: LocalAuthDelegate { func authenticationFinished(string: String) { DispatchQueue.main.async { self.promtLabel.text = "" self.validationPassed() } } func authenticationFinishedWithError(error: String) { DispatchQueue.main.async { self.promtLabel.text = error } } }
Requirements
Installation
SPTouchID is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'SPTouchID','~> 0.1.7'
Author
ssowri1, [email protected]
License
SPTouchID is available under the MIT license. See the LICENSE file for more info.