DefaultButtonCustomization

@objc(Checkout3DSDefaultButtonCustomization)
public final class DefaultButtonCustomization : NSObject, ButtonCustomization

A ButtonCustomization object with default fonts and colors.

  • Tag: DefaultButtonCustomization
  • The background color to be set for DefaultButtonCustomization object.

    Declaration

    Swift

    @objc
    public let backgroundColor: UIColor
  • The corner radius to be set for DefaultButtonCustomization object.

    Declaration

    Swift

    @objc
    public let cornerRadius: CGFloat
  • The corner curve to be set for DefaultButtonCustomization object.

    Declaration

    Swift

    @objc
    public let cornerCurve: CALayerCornerCurve?
  • The font to be set for DefaultButtonCustomization object.

    Declaration

    Swift

    @objc
    public let font: UIFont
  • The text color to be set for DefaultButtonCustomization object.

    Declaration

    Swift

    @objc
    public let textColor: UIColor
  • The border width color to be set for DefaultButtonCustomization object.

    Declaration

    Swift

    @objc
    public let borderWidth: CGFloat
  • The border color to be set for DefaultButtonCustomization object.

    Declaration

    Swift

    @objc
    public let borderColor: CGColor?
  • The shadow color to be set for DefaultButtonCustomization object.

    Declaration

    Swift

    @objc
    public let shadowColor: CGColor?
  • The shadow offset color to be set for DefaultButtonCustomization object.

    Declaration

    Swift

    @objc
    public let shadowOffset: CGSize
  • The shadow radius color to be set for DefaultButtonCustomization object.

    Declaration

    Swift

    @objc
    public let shadowRadius: CGFloat
  • The shadow opacity color to be set for DefaultButtonCustomization object.

    Declaration

    Swift

    @objc
    public let shadowOpacity: Float
  • Initializes a DefaultButtonCustomization object.

    Declaration

    Swift

    @objc
    public init(backgroundColor: UIColor,
                cornerRadius: CGFloat,
                cornerCurve: CALayerCornerCurve?,
                font: UIFont,
                textColor: UIColor,
                borderWidth: CGFloat,
                borderColor: CGColor?,
                shadowColor: CGColor? = nil,
                shadowOffset: CGSize = .zero,
                shadowRadius: CGFloat = 0,
                shadowOpacity: Float = 0)