STPThreeDSTextFieldCustomization
@interface STPThreeDSTextFieldCustomization : NSObject
A customization object to use to configure the UI of a text field.
-
The default settings.
Declaration
Objective-C
+ (nonnull instancetype)defaultSettings;
Swift
class func defaultSettings() -> Self
-
The border width of the text field. Defaults to 2.
Declaration
Objective-C
@property (assign, readwrite, nonatomic) CGFloat borderWidth;
Swift
var borderWidth: CGFloat { get set }
-
The color of the border of the text field. Defaults to clear.
Declaration
Objective-C
@property (readwrite, strong, nonatomic) UIColor *_Nonnull borderColor;
Swift
var borderColor: UIColor { get set }
-
The corner radius of the edges of the text field. Defaults to 8.
Declaration
Objective-C
@property (assign, readwrite, nonatomic) CGFloat cornerRadius;
Swift
var cornerRadius: CGFloat { get set }
-
The appearance of the keyboard. Defaults to UIKeyboardAppearanceDefault.
Declaration
Objective-C
@property (assign, readwrite, nonatomic) UIKeyboardAppearance keyboardAppearance;
Swift
var keyboardAppearance: UIKeyboardAppearance { get set }
-
The color of the placeholder text. Defaults to light gray.
Declaration
Objective-C
@property (readwrite, strong, nonatomic) UIColor *_Nonnull placeholderTextColor;
Swift
var placeholderTextColor: UIColor { get set }
-
The font to use for text.
Declaration
Objective-C
@property (readwrite, strong, nonatomic) UIFont *_Nonnull font;
Swift
var font: UIFont { get set }
-
The color to use for the text. Defaults to black.
Declaration
Objective-C
@property (readwrite, strong, nonatomic) UIColor *_Nonnull textColor;
Swift
var textColor: UIColor { get set }