SQIPTheme

@interface SQIPTheme : NSObject <NSCopying>

Encapsulates options used to style SQIPCardEntryViewController.

  • The font used for text fields and informational messages.

    Declaration

    Objective-C

    @property (nonatomic, strong, nonnull) UIFont *font;
  • The background color of the card entry view controller.

    Declaration

    Objective-C

    @property (nonatomic, strong, nonnull) UIColor *backgroundColor;
  • The fill color for text fields.

    Declaration

    Objective-C

    @property (nonatomic, strong, nonnull) UIColor *foregroundColor;
  • The text field text color.

    Declaration

    Objective-C

    @property (nonatomic, strong, nonnull) UIColor *textColor;
  • The text field placeholder text color.

    Declaration

    Objective-C

    @property (nonatomic, strong, nonnull) UIColor *placeholderTextColor;
  • The tint color reflected in:

    • the text field cursor
    • the save button background color when enabled
    • the loading indicator

    Declaration

    Objective-C

    @property (nonatomic, strong, nonnull) UIColor *tintColor;
  • The text color used to display informational messages (e.g. “Enter the three digit CVV number”).

    Declaration

    Objective-C

    @property (nonatomic, strong, nonnull) UIColor *messageColor;
  • The text color used to display errors.

    Declaration

    Objective-C

    @property (nonatomic, strong, nonnull) UIColor *errorColor;
  • The title of the save button.

    Declaration

    Objective-C

    @property (nonatomic, strong, nonnull) NSString *saveButtonTitle;
  • The save button font.

    Declaration

    Objective-C

    @property (nonatomic, strong, nonnull) UIFont *saveButtonFont;
  • The text color of the save button when enabled.

    Declaration

    Objective-C

    @property (nonatomic, strong, nonnull) UIColor *saveButtonTextColor;
  • The keyboard appearance.

    Declaration

    Objective-C

    @property (nonatomic) UIKeyboardAppearance keyboardAppearance;
  • Sets an optional custom cancel button used to dismiss the view controller. This property is nil by default, indicating that the default cancel button should be used.

    Declaration

    Objective-C

    @property (nonatomic, strong, nullable) UIBarButtonItem *cancelButton;