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
fdlFUITextField_secureShowButton
fdlFUITextField_secureHideButton
  • Implementation of change handler. Is invoked on changes to the text property.

    Declaration

    Swift

    public var onChangeHandler: ((String?) -> Void)?
  • This property indicates if this text input field is a Fiori style secure text entry.

    The Fiori style secure text entry has a “Show” button when the text is in secure mode, and has a “Hide” button when the text is in plain mdoe.

    Declaration

    Swift

    public var isFioriStyleSecureTextEntry: Bool { get set }
  • This image overrides the default image for the “Show” button for the Fiori style secure text entry.

    Declaration

    Swift

    public var secureShowImage: UIImage?
  • This image overrides the default image for the “Hide” button for the Fiori style secure text entry.

    Declaration

    Swift

    public var secureHideImage: UIImage?
  • The button to hide the secure input characters.

    This button is used when isFioriStyleSecureTextEntry is true for inputting secure text.

    Declaration

    Swift

    open lazy var secureHideButton: FUIButton { get set }
  • The button to show the secure input characters.

    This button is used when isFioriStyleSecureTextEntry is true for inputting secure text.

    Declaration

    Swift

    open lazy var secureShowButton: FUIButton { get set }