STPThreeDSButtonCustomization

@interface STPThreeDSButtonCustomization : NSObject

A customization object to use to configure the UI of a button.

  • The default settings for the provided button type.

    Declaration

    Objective-C

    + (nonnull instancetype)defaultSettingsForButtonType:
        (STPThreeDSCustomizationButtonType)type;

    Swift

    class func defaultSettings(for type: STPThreeDSCustomizationButtonType) -> Self
  • Initializes an instance of STDSButtonCustomization with the given backgroundColor and colorRadius.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithBackgroundColor:
                                (nonnull UIColor *)backgroundColor
                                       cornerRadius:(CGFloat)cornerRadius;

    Swift

    init(backgroundColor: UIColor, cornerRadius: CGFloat)
  • Unavailable

    This is unavailable because there are no sensible default property values without a button type. Use defaultSettingsForButtonType: or initWithBackgroundColor:cornerRadius: instead.

    Declaration

    Objective-C

    - (nonnull instancetype)init;
  • The background color of the button. The default for .resend and .cancel is clear. The default for .submit, .continue, and .next is blue.

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic) UIColor *_Nonnull backgroundColor;

    Swift

    var backgroundColor: UIColor { get set }
  • The corner radius of the button. Defaults to 8.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) CGFloat cornerRadius;

    Swift

    var cornerRadius: CGFloat { get set }
  • The capitalization style of the button title.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) STPThreeDSButtonTitleStyle titleStyle;

    Swift

    var titleStyle: STPThreeDSButtonTitleStyle { get set }
  • The font of the title.

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic) UIFont *_Nonnull font;

    Swift

    var font: UIFont { get set }
  • The text color of the title.

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic) UIColor *_Nonnull textColor;

    Swift

    var textColor: UIColor { get set }