MimiValidatingTextField
@MainActor
open class MimiValidatingTextField<TextField> : MimiControl where TextField : UITextField
View which encompasses a text field and provides in-line validation.
-
Color to use for displaying error messages when validation fails.
Declaration
Swift
@MainActor open var errorColor: UIColor! { get set }
-
Color to use for any specified message that is displayed when validation has not failed.
Declaration
Swift
@MainActor open var messageColor: UIColor! { get set }
-
Message to display at all times that validation has not failed.
If validation fails, this message will be overriden with the error message. Upon returning to a valid state, the message will again be displayed.
Declaration
Swift
@MainActor open var message: String? { get set }
-
The number of lines to make available and display for validation messages.
Defaults to 1.
Declaration
Swift
@MainActor open var numberOfLines: Int { get set }
-
Accessibility identifier for the validation message label.
Declaration
Swift
@MainActor open var messageAccessibilityIdentifier: String? { get set }
-
Accessibility identifier for the native text field view.
Declaration
Swift
@MainActor open var fieldAccessibilityIdentifier: String? { get set }
-
Declaration
Swift
@MainActor open override func construct(in view: UIView)
-
Declaration
Swift
@MainActor open override func apply(theme: MimiThemeDefinition)