Skip to content

Commit

Permalink
Added support for specifying a placeholder text color on text views
Browse files Browse the repository at this point in the history
  • Loading branch information
jverdi committed Aug 13, 2014
1 parent 11ec66c commit 587c614
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
@property (nonatomic, strong) UIFont * floatingLabelFont UI_APPEARANCE_SELECTOR;
@property (nonatomic, strong) UIColor * floatingLabelTextColor UI_APPEARANCE_SELECTOR;
@property (nonatomic, strong) UIColor * floatingLabelActiveTextColor UI_APPEARANCE_SELECTOR; // tint color is used by default if not provided
@property (nonatomic, strong) UIColor * placeholderTextColor UI_APPEARANCE_SELECTOR;
@property (nonatomic, assign) NSInteger animateEvenIfNotFirstResponder UI_APPEARANCE_SELECTOR; // Can't use BOOL for UI_APPEARANCE. Non-zero == YES
@property (nonatomic, assign) NSTimeInterval floatingLabelShowAnimationDuration;
@property (nonatomic, assign) NSTimeInterval floatingLabelHideAnimationDuration;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,12 @@ - (void)setText:(NSString *)text
[self layoutSubviews];
}

- (void)setPlaceholderTextColor:(UIColor *)placeholderTextColor
{
_placeholderTextColor = placeholderTextColor;
_placeholderLabel.textColor = _placeholderTextColor;
}

#pragma mark - Accessibility

- (NSString *)accessibilityLabel
Expand Down

0 comments on commit 587c614

Please sign in to comment.