FUITextField

open class FUITextField : UITextField, FUIObservableValue

Subclass of UITextField, which implements the FUIObservableValue protocol, to observe changes to the text property. The onChangeHandler: ((String?) -> Void)? closure will be invoked on changes to the text property.

Theming

Supported style classes

fdlFUITextField
fdlFUITextField_clearButton
  • Implementation of change handler. Is invoked on changes to the text property.

    Declaration

    Swift

    public var onChangeHandler: ((String?) -> Void)?
  • Undocumented

    Declaration

    Swift

    open override func caretRect(for position: UITextPosition) -> CGRect