Appearance

struct Appearance : Equatable

Describes the appearance of PaymentSheet

  • The default appearance for PaymentSheet

    Declaration

    Swift

    public static let `default`: PaymentSheet.Appearance
  • Creates a PaymentSheet.Appearance with default values

    Declaration

    Swift

    public init()
  • Describes the appearance of fonts in PaymentSheet

    Declaration

    Swift

    public var font: Font
  • Describes the colors in PaymentSheet

    Declaration

    Swift

    public var colors: Colors
  • Describes the appearance of the primary button (e.g., the “Pay” button)

    Declaration

    Swift

    public var primaryButton: PrimaryButton
  • The corner radius used for buttons, inputs, tabs in PaymentSheet

    Note

    The behavior of this property is consistent with the behavior of corner radius on CALayer

    Declaration

    Swift

    public var cornerRadius: CGFloat
  • The border used for inputs and tabs in PaymentSheet

    Note

    The behavior of this property is consistent with the behavior of border width on CALayer

    Declaration

    Swift

    public var borderWidth: CGFloat
  • The shadow used for inputs and tabs in PaymentSheet

    Note

    Set this to .disabled to disable shadows

    Declaration

    Swift

    public var shadow: Shadow

Fonts

Colors

Shadow

Primary Button