UITextField Extensions

Omar Albeik edited this page Dec 10, 2016 · 5 revisions

UITextField extensions


Name Description
isEmpty Check if text field is empty.
trimmedText Return text with no spaces or new lines in beginning and end.
leftViewTintColor Left view tint color.
rightViewTintColor Right view tint color.


Name Return Description
setPlaceHolderTextColor(_ color: UIColor) -- Set placeholder text color.