3lvis / FormTextField

UITextField with support for formatters and input validators
Other
186 stars 41 forks source link

Improve: small tweaks #17

Closed 3lvis closed 8 years ago

3lvis commented 8 years ago

Simplifies the set up of a custom accessory view. It allows to use any view, it could be a button or an image view. Also it fallbacks to the old clear button when no accessory has been specified.

marijnschilling commented 8 years ago

I think this works! Except I can't seem to find a way to completely the disable the clearButton in your adjustments.

marijnschilling commented 8 years ago

Other thing: if I want to use this for the style required by my app, I have to do this in setup:

textField.activeTextColor = UIColor.whiteColor()
textField.disabledTextColor = UIColor.whiteColor()
textField.validTextColor = UIColor.whiteColor()
textField.inactiveTextColor = UIColor.whiteColor()
textField.disabledTextColor = UIColor.whiteColor()
textField.invalidTextColor = UIColor.whiteColor()

Might make that a bit easier 😬