Skip to content
This repository was archived by the owner on May 23, 2022. It is now read-only.

Commit b138077

Browse files
author
MAXIM KOLESNIK
committed
1.0.2
1 parent 1ba3afb commit b138077

File tree

4 files changed

+3
-1
lines changed

4 files changed

+3
-1
lines changed

SCPinViewController/SCPinViewController/Appearance/SCPinAppearance.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,6 @@
3838
@property (nonatomic, strong) UIFont *supportTextFont;
3939

4040
@property (nonatomic, strong) NSString *touchIDText;
41+
@property (nonatomic, strong) NSString *touchIDVerification;
4142

4243
@end

SCPinViewController/SCPinViewController/Appearance/SCPinAppearance.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ -(void)setupDefaultAppearance {
5555
self.supportTextColor = defaultColor;
5656

5757
self.touchIDText = @"Put finger";
58+
self.touchIDVerification = @"Pincode TouchID";
5859
}
5960

6061

SCPinViewController/SCPinViewController/SCPinViewController.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ - (void)touchIDVerification {
318318
if ([context canEvaluatePolicy:LAPolicyDeviceOwnerAuthenticationWithBiometrics error:&error]) {
319319
__weak SCPinViewController *weakSelf = self;
320320
[context evaluatePolicy:LAPolicyDeviceOwnerAuthenticationWithBiometrics
321-
localizedReason:@"Pincode TouchID"
321+
localizedReason:_appearance.touchIDVerification
322322
reply:^(BOOL success, NSError * authenticationError) {
323323
if (success) {
324324
__strong SCPinViewController *strongSelf = weakSelf;

0 commit comments

Comments
 (0)