SQIPTheme

@interface SQIPTheme : NSObject <NSCopying>

Encapsulates options used to style SQIPCardEntryViewController.

  • The font used for text fields and informational messages.

    Declaration

    Objective-C

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

    Swift

    var font: UIFont { get set }
  • The background color of the card entry view controller.

    Declaration

    Objective-C

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

    Swift

    var backgroundColor: UIColor { get set }
  • The fill color for text fields.

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic, nonnull) UIColor *foregroundColor;

    Swift

    var foregroundColor: UIColor { get set }
  • The text field text color.

    Declaration

    Objective-C

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

    Swift

    var textColor: UIColor { get set }
  • The text field placeholder text color.

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic, nonnull) UIColor *placeholderTextColor;

    Swift

    var placeholderTextColor: UIColor { get set }
  • The tint color reflected in:

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

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic, nonnull) UIColor *tintColor;

    Swift

    var tintColor: UIColor { get set }
  • The text color used to display informational messages (e.g. Enter the three digit CVV number).

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic, nonnull) UIColor *messageColor;

    Swift

    var messageColor: UIColor { get set }
  • The text color used to display errors.

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic, nonnull) UIColor *errorColor;

    Swift

    var errorColor: UIColor { get set }
  • The title of the save button.

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic, nonnull) NSString *saveButtonTitle;

    Swift

    var saveButtonTitle: String { get set }
  • The save button font.

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic, nonnull) UIFont *saveButtonFont;

    Swift

    var saveButtonFont: UIFont { get set }
  • The text color of the save button when enabled.

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic, nonnull) UIColor *saveButtonTextColor;

    Swift

    var saveButtonTextColor: UIColor { get set }
  • The keyboard appearance.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) UIKeyboardAppearance keyboardAppearance;

    Swift

    var keyboardAppearance: UIKeyboardAppearance { get set }
  • 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 (readwrite, strong, nonatomic, nullable) UIBarButtonItem *cancelButton;

    Swift

    var cancelButton: UIBarButtonItem? { get set }