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
-
init(borderColor:
focusedBorderColor: disabledBorderColor: borderWidth: focusedBorderWidth: cornerRadius: font: foregroundColor: disabledForegroundColor: ) 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. Ifnil
, the default border color will be used.focusedBorderColor
Optional
Color
to specify the border color when the text field is focused. Ifnil
, the default focused border color will be used.disabledBorderColor
Optional
Color
to specify the border color when the text field is disabled. Ifnil
, the default disabled border color will be usedborderWidth
Optional
CGFloat
to specify the border width when the text field is not focused. Ifnil
, the default border width will be used.focusedBorderWidth
Optional
CGFloat
to specify the border width when the text field is focused. Ifnil
, the default focused border width will be usedcornerRadius
Optional
CGFloat
to specify the corner radius of the text field. Ifnil
, the default corner radius will be usedfont
Optional
Font
to specify the font used for the text inside the text field. Ifnil
, the default font will be usedforegroundColor
Optional
Color
to specify the color of the text inside the text field. Ifnil
, the default foreground color will be useddisabledForegroundColor
Optional
Color
to specify the color of the text inside the text field when it is disabled. Ifnil
, the default disabled foreground will be used