To run the example project, clone the repo, and run pod install
from the Example directory first.
//**** REQUIRED ****//
/// 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
}
}
}
SPTouchID is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'SPTouchID','~> 0.1.7'
ssowri1, ssowri1@gmail.com
SPTouchID is available under the MIT license. See the LICENSE file for more info.