DefaultCancelButtonCustomization
@objc(Checkout3DSDefaultCancelButtonCustomization)
public final class DefaultCancelButtonCustomization : NSObject, ButtonCustomization
The default ButtonCustomization object for the cancel button on the challenge screen.
-
The text to be set for DefaultCancelButtonCustomization object.
Declaration
Swift
@objc public let text: String
-
The background color to be set for DefaultCancelButtonCustomization object.
Declaration
Swift
@objc public let backgroundColor: UIColor
-
The background cornor radius to be set for DefaultCancelButtonCustomization object.
Declaration
Swift
@objc public let cornerRadius: CGFloat
-
The background corner curve to be set for DefaultCancelButtonCustomization object.
Declaration
Swift
@objc public let cornerCurve: CALayerCornerCurve?
-
The font to be set for DefaultCancelButtonCustomization object.
Declaration
Swift
@objc public let font: UIFont
-
The text color to be set for DefaultCancelButtonCustomization object.
Declaration
Swift
@objc public let textColor: UIColor
-
The text border width to be set for DefaultCancelButtonCustomization object.
Declaration
Swift
@objc public let borderWidth: CGFloat
-
The border color to be set for DefaultCancelButtonCustomization object.
Declaration
Swift
@objc public let borderColor: CGColor?
-
The shadow color to be set for DefaultCancelButtonCustomization object.
Declaration
Swift
@objc public let shadowColor: CGColor?
-
The shadow offset to be set for DefaultCancelButtonCustomization object.
Declaration
Swift
@objc public let shadowOffset: CGSize
-
The shadow radius to be set for DefaultCancelButtonCustomization object.
Declaration
Swift
@objc public let shadowRadius: CGFloat
-
The shadow opacity to be set for DefaultCancelButtonCustomization object.
Declaration
Swift
@objc public let shadowOpacity: Float
-
init(text:
backgroundColor: cornerRadius: cornerCurve: font: textColor: borderWidth: borderColor: shadowColor: shadowOffset: shadowRadius: shadowOpacity: ) Initializes a DefaultCancelButtonCustomization object which is available for iOS 13.0 and later.
Declaration
Swift
@available(iOS 13.0, *) @objc public init(text: String = "Cancel", backgroundColor: UIColor = .white, cornerRadius: CGFloat = 5, cornerCurve: CALayerCornerCurve = .continuous, font: UIFont = .preferredFont(forTextStyle: .body), textColor: UIColor = .systemBlue, borderWidth: CGFloat = 0, borderColor: CGColor? = nil, shadowColor: CGColor? = nil, shadowOffset: CGSize = .zero, shadowRadius: CGFloat = 0, shadowOpacity: Float = 0)
-
init(text:
backgroundColor: cornerRadius: font: textColor: borderWidth: borderColor: shadowColor: shadowOffset: shadowRadius: shadowOpacity: ) Initializes a DefaultCancelButtonCustomization object.
Declaration
Swift
@objc public init(text: String = "Cancel", backgroundColor: UIColor = .white, cornerRadius: CGFloat = 5, font: UIFont = .preferredFont(forTextStyle: .body), textColor: UIColor = .systemBlue, borderWidth: CGFloat = 0, borderColor: CGColor? = nil, shadowColor: CGColor? = nil, shadowOffset: CGSize = .zero, shadowRadius: CGFloat = 0, shadowOpacity: Float = 0)