UITextField
public extension UITextField
TextField+Attribute provides additional support to access the attribute of the UITextField.
Version
1.5.0-
Set the font color of the UITextField.
Declaration
Swift
var placeholderColor: UIColor { get set } -
Get the height of each line.
Declaration
Swift
var lineHeight: CGFloat { get } -
Activate the underline view.
Declaration
Swift
func activateUnderline(withNormal color: UIColor, withHignlighted highlightedColor: UIColor)Parameters
colorThe normal color of the underline.
highlightedColorThe highlighted color of the underline.
-
Deactivate the underline view.
Declaration
Swift
func deactivateUnderline() -
Start editing and highlight the underline view.
Declaration
Swift
@objc func startEditing() -
Finish the editing and dehighlight the underline view.
Declaration
Swift
@objc func finishEditing()
UITextField Extension Reference