STPThreeDSNavigationBarCustomization
Objective-C
@interface STPThreeDSNavigationBarCustomization : NSObject
Swift
class STPThreeDSNavigationBarCustomization : NSObject
A customization object to use to configure a UINavigationBar.
-
The default settings.
Declaration
Objective-C
+ (nonnull instancetype)defaultSettings;
Swift
class func defaultSettings() -> Self
-
The tint color of the navigation bar background. Defaults to nil.
Declaration
Objective-C
@property (nonatomic, nullable) UIColor *barTintColor;
Swift
var barTintColor: UIColor? { get set }
-
The navigation bar style. Defaults to UIBarStyleDefault.
Note
This property controls theUIStatusBarStyle
. Set this toUIBarStyleBlack
to change thestatusBarStyle
toUIStatusBarStyleLightContent
- even if you also setbarTintColor
to change the actual color of the navigation bar.Declaration
Objective-C
@property (nonatomic) UIBarStyle barStyle;
Swift
var barStyle: UIBarStyle { get set }
-
A Boolean value indicating whether the navigation bar is translucent or not. Defaults to YES.
Declaration
Objective-C
@property (nonatomic, getter=isTranslucent) BOOL translucent;
Swift
var isTranslucent: Bool { get set }
-
The text to display in the title of the navigation bar. Defaults to “Secure checkout”.
Declaration
Objective-C
@property (nonatomic, copy) NSString *_Nonnull headerText;
Swift
var headerText: String { get set }
-
The text to display for the button in the navigation bar. Defaults to “Cancel”.
Declaration
Objective-C
@property (nonatomic, copy) NSString *_Nonnull buttonText;
Swift
var buttonText: String { get set }
-
The font to use for the title. Defaults to nil.
Declaration
Objective-C
@property (nonatomic, nullable) UIFont *font;
Swift
var font: UIFont? { get set }
-
The color to use for the title. Defaults to nil.
Declaration
Objective-C
@property (nonatomic, nullable) UIColor *textColor;
Swift
var textColor: UIColor? { get set }