FioriButtonStyleConfiguration

public struct FioriButtonStyleConfiguration

The properties of a Fiori button.

  • A type-erased label of a button.

    See more

    Declaration

    Swift

    public struct Label : View
  • A type-erased Image of a button.

    See more

    Declaration

    Swift

    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) -> Label

    Parameters

    state

    A valid state for a button. For a Fiori button with non-persistent selection, .normal, .disabled, and .highlighted are supported. For a button with persistent selection, use .selected instead 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) -> Image

    Parameters

    state

    A valid state for a button. For a Fiori button with non-persistent selection, .normal, .disabled, and .highlighted are supported. For a button with persistent selection, use .selected instead of .highlighted.

    Return Value

    The Image for the specific state.