Skip to content

Commit

Permalink
Adding support to different keyboard's appearances.
Browse files Browse the repository at this point in the history
  • Loading branch information
bipsa committed Jun 2, 2015
1 parent 4ff6232 commit 4c711af
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions VENTokenField/VENTokenField.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
5 changes: 5 additions & 0 deletions VENTokenField/VENTokenField.m
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4c711af

Please sign in to comment.