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.

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

    Declaration

    Swift

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