FormTextItemStyle

public struct FormTextItemStyle : FormValueItemStyle

Contains the styling customization options for a text item in a form.

  • The title style.

    Declaration

    Swift

    public var title: TextStyle
  • The text field’s style.

    Declaration

    Swift

    public var text: TextStyle
  • The text field’s placeholder text style.

    Declaration

    Swift

    public var placeholderText: TextStyle?
  • The icons’ style.

    Declaration

    Swift

    public var icon: ImageStyle
  • The tint color of text field and separator in focused state.

    Declaration

    Swift

    public var tintColor: UIColor? { get set }
  • The accent color for warnings and error messages.

    Declaration

    Swift

    public var errorColor: UIColor
  • The color for separator element. If value is nil, the default color would be used.

    Declaration

    Swift

    public var separatorColor: UIColor?
  • Initializes the form text item style.

    Declaration

    Swift

    public init(title: TextStyle,
                text: TextStyle,
                placeholderText: TextStyle? = nil,
                icon: ImageStyle)

    Parameters

    title

    The title style.

    text

    The text field’s style.

    placeholderText

    The text field’s placeholder text style.

    icon

    The icon’s style.

  • Initializes the text item’s style with the default style and custom tint for all elements.

    Declaration

    Swift

    public init(tintColor: UIColor)

    Parameters

    tintColor

    The color for tinting the item and validation icon.

  • Initializes the text item’s style with the default style.

    Declaration

    Swift

    public init()