diff --git a/VENTokenField/VENTokenField.h b/VENTokenField/VENTokenField.h index 73ea5dd..0c8f2b6 100644 --- a/VENTokenField/VENTokenField.h +++ b/VENTokenField/VENTokenField.h @@ -62,6 +62,8 @@ @property (assign, nonatomic) CGFloat minInputWidth; @property (assign, nonatomic) UIKeyboardType inputTextFieldKeyboardType; +@property (assign, nonatomic) UIKeyboardAppearance inputTextFieldKeyboardAppearance; + @property (assign, nonatomic) UITextAutocorrectionType autocorrectionType; @property (assign, nonatomic) UITextAutocapitalizationType autocapitalizationType; @property (assign, nonatomic) UIView *inputTextFieldAccessoryView; diff --git a/VENTokenField/VENTokenField.m b/VENTokenField/VENTokenField.m index 63c63a6..b0ab624 100644 --- a/VENTokenField/VENTokenField.m +++ b/VENTokenField/VENTokenField.m @@ -415,6 +415,11 @@ - (void)setAutocorrectionType:(UITextAutocorrectionType)autocorrectionType [self.invisibleTextField setAutocorrectionType:self.autocorrectionType]; } +- (void) setInputTextFieldKeyboardAppearance:(UIKeyboardAppearance)inputTextFieldKeyboardAppearance { + _inputTextFieldKeyboardAppearance = inputTextFieldKeyboardAppearance; + [self.inputTextField setKeyboardAppearance:self.inputTextFieldKeyboardAppearance]; +} + - (void)setInputTextFieldKeyboardType:(UIKeyboardType)inputTextFieldKeyboardType { _inputTextFieldKeyboardType = inputTextFieldKeyboardType;