Shadow

public struct Shadow : Equatable

Represents a shadow in PaymentSheet

  • A pre-configured Shadow in the disabled or off state

    Declaration

    Swift

    public static var disabled: Shadow { get }
  • Color of the shadow

    Note

    The behavior of this property is consistent with CALayer.shadowColor

    Declaration

    Swift

    public var color: UIColor
  • Opacity or alpha of the shadow

    Note

    The behavior of this property is consistent with CALayer.shadowOpacity

    Declaration

    Swift

    public var opacity: CGFloat
  • Offset of the shadow

    Note

    The behavior of this property is consistent with CALayer.shadowOffset

    Declaration

    Swift

    public var offset: CGSize
  • Radius of the shadow

    Note

    The behavior of this property is consistent with CALayer.shadowRadius

    Declaration

    Swift

    public var radius: CGFloat
  • Creates a PaymentSheet.Appearance.Shadow with default values

    Declaration

    Swift

    public init()
  • Creates a Shadow with the specified parameters

    Declaration

    Swift

    public init(color: UIColor, opacity: CGFloat, offset: CGSize, radius: CGFloat)

    Parameters

    color

    Color of the shadow

    opacity

    Opacity or opacity of the shadow

    offset

    Offset of the shadow

    radius

    Radius of the shadow