State

public enum State

The state of the text field.

  • The default state.

    Declaration

    Swift

    case `default`
  • Disables the text field.

    Declaration

    Swift

    case disabled
  • Adds a clear button to the text field. The action is called when the button is tapped.

    Declaration

    Swift

    case clear(accessibilityLabel: String, action: () -> Void)
  • Adds a valid icon to the text field.

    Declaration

    Swift

    case valid
  • Adds an error icon to the text field and changes the border color to error.

    Declaration

    Swift

    case error