ButtonStyle

public struct ButtonStyle : ViewStyle

Contains the styling customization options for any buttons.

  • The title style.

    Declaration

    Swift

    public var title: TextStyle
  • The corner radius of the button.

    Declaration

    Swift

    public var cornerRadius: CGFloat
  • Initializes the button style.

    Declaration

    Swift

    public init(title: TextStyle, cornerRadius: CGFloat)

    Parameters

    title

    The title style.

    cornerRadius

    The corner radius of the button.

  • Initializes the button style.

    Declaration

    Swift

    public init(title: TextStyle, cornerRadius: CGFloat, background: UIColor)

    Parameters

    title

    The button title text style.

    cornerRadius

    The button corner radius.

    background

    Color to fill button’s background.