Skip to content

Commit 828115c

Browse files
committed
Added max number of failed attempts to demo app
1 parent 04d1b1e commit 828115c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Demo/LTHPasscodeViewController Demo/LTHDemoViewController.m

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,8 @@ - (void)viewDidLoad {
8383
_changePasscode.frame = CGRectMake(100, 300, 100, 50);
8484
_turnOffPasscode.frame = CGRectMake(100, 400, 100, 50);
8585

86+
[[LTHPasscodeViewController sharedUser] setMaxNumberOfAllowedFailedAttempts:2];
87+
8688
if ([self areBiometricsAvailable]) {
8789
_typeLabel = [[UILabel alloc] initWithFrame:(CGRect){230, 190, 60, 30}];
8890
_typeSwitch = [[UISwitch alloc] initWithFrame:(CGRect){230, 220, 100, 100}];
@@ -201,6 +203,7 @@ - (void)_touchIDPasscodeType:(UISwitch *)sender {
201203
[[LTHPasscodeViewController sharedUser] setAllowUnlockWithBiometrics:sender.isOn];
202204
}
203205

206+
204207
- (void)showLockViewForEnablingPasscode {
205208
[[LTHPasscodeViewController sharedUser] showForEnablingPasscodeInViewController:self
206209
asModal:YES];

0 commit comments

Comments
 (0)