FioriSliderTextFieldStyle

public struct FioriSliderTextFieldStyle

The FioriSliderTextFieldStyle structure is used to customize the appearance of the text field in a Fiori Slider. It allows for the configuration of various properties such as border colors, widths, corner radius, font, and foreground colors. Consumers can create their own instances of FioriSliderTextFieldStyle to apply custom styles to the slider text field.

  • Specifies the border color of the text field when it is not focused.

    Declaration

    Swift

    public var borderColor: Color
  • Specifies the border color of the text field when it is focused.

    Declaration

    Swift

    public var focusedBorderColor: Color
  • Specifies the border color of the text field when it is disabled.

    Declaration

    Swift

    public var disabledBorderColor: Color
  • Specifies the width of the border of the text field when it is not focused.

    Declaration

    Swift

    public var borderWidth: CGFloat
  • Specifies the width of the border of the text field when it is focused.

    Declaration

    Swift

    public var focusedBorderWidth: CGFloat
  • Specifies the corner radius of the text field.

    Declaration

    Swift

    public var cornerRadius: CGFloat
  • Specifies the font used for the text inside the text field.

    Declaration

    Swift

    public var font: Font
  • Specifies the color of the text inside the text field.

    Declaration

    Swift

    public var foregroundColor: Color
  • Specifies the color of the text inside the text field when it is disabled.

    Declaration

    Swift

    public var disabledForegroundColor: Color
  • Creates a custom style for the slider text field by specifying various properties. If a property is not provided, a default value will be used.

    Declaration

    Swift

    public init(borderColor: Color? = nil, focusedBorderColor: Color? = nil, disabledBorderColor: Color? = nil, borderWidth: CGFloat? = nil, focusedBorderWidth: CGFloat? = nil, cornerRadius: CGFloat? = nil, font: Font? = nil, foregroundColor: Color? = nil, disabledForegroundColor: Color? = nil)

    Parameters

    borderColor

    Optional Color to specify the border color when the text field is not focused. If nil, the default border color will be used.

    focusedBorderColor

    Optional Color to specify the border color when the text field is focused. If nil, the default focused border color will be used.

    disabledBorderColor

    Optional Color to specify the border color when the text field is disabled. If nil, the default disabled border color will be used

    borderWidth

    Optional CGFloat to specify the border width when the text field is not focused. If nil, the default border width will be used.

    focusedBorderWidth

    Optional CGFloat to specify the border width when the text field is focused. If nil, the default focused border width will be used

    cornerRadius

    Optional CGFloat to specify the corner radius of the text field. If nil, the default corner radius will be used

    font

    Optional Font to specify the font used for the text inside the text field. If nil, the default font will be used

    foregroundColor

    Optional Color to specify the color of the text inside the text field. If nil, the default foreground color will be used

    disabledForegroundColor

    Optional Color to specify the color of the text inside the text field when it is disabled. If nil, the default disabled foreground will be used