Skip to content

Commit ae8b16b

Browse files
committed
Added more keyboard provisions
1 parent d54e5f4 commit ae8b16b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

TOPasscodeViewController/Views/Main/TOPasscodeView.m

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,7 @@ - (void)setUpViewForType:(TOPasscodeType)type
251251
}
252252
else {
253253
self.inputField.showSubmitButton = (self.passcodeType == TOPasscodeTypeCustomNumeric);
254+
self.inputField.enabled = (self.passcodeType == TOPasscodeTypeCustomAlphanumeric);
254255
}
255256

256257
[self addSubview:self.inputField];
@@ -334,6 +335,9 @@ - (void)applyThemeForStyle:(TOPasscodeViewStyle)style
334335
self.keypadView.vibrancyEffect = nil;
335336
}
336337

338+
// Set keyboard style of the input field
339+
self.inputField.keyboardAppearance = isDark ? UIKeyboardAppearanceDark : UIKeyboardAppearanceDefault;
340+
337341
UIColor *defaultTintColor = isDark ? [UIColor colorWithWhite:0.85 alpha:1.0f] : [UIColor colorWithWhite:0.3 alpha:1.0f];
338342

339343
// Set the tint color of the circle row view

0 commit comments

Comments
 (0)