[![CI Status](http://img.shields.io/travis/Peter Gulyas/DATTouchID.svg?style=flat)](https://travis-ci.org/Peter Gulyas/DATTouchID)
Use DATTouchID to access or store data using biometrics or passcode to authenticate
To run the example project, clone the repo, and run pod install
from the Example directory first.
- (void) viewDidLoad{
...
self.touchId = [DATTouchID new];
if (self.touchId.hasData){
... update interface
}
}
- (void) loadData{
[self.touchId getDataWithPrompt:@"Load stored credentials" complete:^(NSData *data, NSError *error) {
...
}];
}
- (void) saveData{
NSData* data = ...;
[self.touchId setData:data complete:^(BOOL success, NSError * error) {
...
}];
}
DATTouchID is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "DATTouchID"
DATTouchID is available under the MIT license. See the LICENSE file for more info.