FUITextField
@MainActor
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
textproperty.Declaration
Swift
@MainActor 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
@MainActor 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
@MainActor public var secureShowImage: UIImage? -
This image overrides the default image for the “Hide” button for the Fiori style secure text entry.
Declaration
Swift
@MainActor public var secureHideImage: UIImage? -
The button to hide the secure input characters.
This button is used when
isFioriStyleSecureTextEntryis true for inputting secure text.Declaration
Swift
@MainActor open lazy var secureHideButton: FUIButton { get set } -
The button to show the secure input characters.
This button is used when
isFioriStyleSecureTextEntryis true for inputting secure text.Declaration
Swift
@MainActor open lazy var secureShowButton: FUIButton { get set }