Skip to content

Commit

Permalink
Merge pull request venmo#71 from bipsa/master
Browse files Browse the repository at this point in the history
Adding support to different keyboard's appearances.
  • Loading branch information
ayanonagon committed Jun 26, 2015
2 parents 959ffe8 + 4c711af commit 19c2c36
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 19c2c36

Please sign in to comment.