UITextField

public extension UITextField

TextField+Attribute provides additional support to access the attribute of the UITextField.

Author

Adamas

Version

1.5.0

Author

15/08/2018
  • 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

    color

    The normal color of the underline.

    highlightedColor

    The 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()