-
A pre-configured
Shadow
in the disabled or off stateDeclaration
Swift
public static var disabled: Shadow { get }
-
Color of the shadow
Note
The behavior of this property is consistent withCALayer.shadowColor
Declaration
Swift
public var color: UIColor
-
Opacity or alpha of the shadow
Note
The behavior of this property is consistent withCALayer.shadowOpacity
Declaration
Swift
public var opacity: CGFloat
-
Offset of the shadow
Note
The behavior of this property is consistent withCALayer.shadowOffset
Declaration
Swift
public var offset: CGSize
-
Radius of the shadow
Note
The behavior of this property is consistent withCALayer.shadowRadius
Declaration
Swift
public var radius: CGFloat
-
Creates a
PaymentSheet.Appearance.Shadow
with default valuesDeclaration
Swift
public init()
-
Creates a
Shadow
with the specified parametersDeclaration
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