FioriButtonStyleConfiguration
public struct FioriButtonStyleConfiguration
The properties of a Fiori button.
-
A type-erased label of a button.
See moreDeclaration
Swift
@MainActor public struct Label : View -
A type-erased Image of a button.
See moreDeclaration
Swift
@MainActor public struct Image : View -
The current state of the button.
Declaration
Swift
public let state: UIControl.State -
Place the image along the top, leading, bottom, or trailing edge of the button.
Declaration
Swift
public let imagePosition: FioriButtonImagePosition -
Spacing between image and title.
Declaration
Swift
public let imageTitleSpacing: CGFloat -
The label for the current state.
Declaration
Swift
public var label: Label { get } -
The Image for the current state.
Declaration
Swift
public var image: Image { get } -
Returns the label for the specific state.
Declaration
Swift
public func label(for state: UIControl.State) -> LabelParameters
stateA valid state for a button. For a Fiori button with non-persistent selection,
.normal,.disabled, and.highlightedare supported. For a button with persistent selection, use.selectedinstead of.highlighted.Return Value
The label for the specific state.
-
Returns the Image for the specific state.
Declaration
Swift
public func image(for state: UIControl.State) -> ImageParameters
stateA valid state for a button. For a Fiori button with non-persistent selection,
.normal,.disabled, and.highlightedare supported. For a button with persistent selection, use.selectedinstead of.highlighted.Return Value
The Image for the specific state.
-
Undocumented
Declaration
Swift
@ViewBuilder public func containerView(_ loadingState: FioriButtonLoadingState) -> some View