TextFieldStyle

public struct TextFieldStyle : ViewStyle

Holds styling information for text field elements.

  • The background color.

    Declaration

    Swift

    public var backgroundColor: UIColor?
  • The dark mode background color.

    Declaration

    Swift

    public var darkBackgroundColor: UIColor?
  • The text style.

    Declaration

    Swift

    public var textStyle: TextStyle?
  • The placeholder style.

    Declaration

    Swift

    public var placeholderStyle: TextStyle?
  • The keyboard type.

    Declaration

    Swift

    public var keyboardType: UIKeyboardType
  • Returns the default style for form text field elements.

    Declaration

    Swift

    public static func getDefaultFormStyle(with keyboardType: UIKeyboardType) -> TextFieldStyle