VOButtonTheme
@interface VOButtonTheme : NSObject <NSCopying>
VOButtonTheme is used to theme all buttons of the application.
-
Button font, all buttons will use this theme.
Declaration
Objective-C
@property (assign, readwrite, nonatomic) VOFontTheme *_Nonnull fontTheme;
Swift
var fontTheme: VOFontTheme { get set }
-
Color for button background color.
Declaration
Objective-C
@property (assign, readwrite, nonatomic) UIColor *_Nonnull backgroundColor;
Swift
var backgroundColor: UIColor { get set }
-
Width for button border.
Declaration
Objective-C
@property (assign, readwrite, nonatomic) CGFloat borderWidth;
Swift
var borderWidth: CGFloat { get set }
-
Color for button border.
Declaration
Objective-C
@property (assign, readwrite, nonatomic) UIColor *_Nonnull borderColor;
Swift
var borderColor: UIColor { get set }
-
Minimum button width.
Declaration
Objective-C
@property (assign, readwrite, nonatomic) CGFloat minWidth;
Swift
var minWidth: CGFloat { get set }
-
Height of button.
Declaration
Objective-C
@property (assign, readwrite, nonatomic) CGFloat height;
Swift
var height: CGFloat { get set }
-
The corner radius of the button. Set this to ‘VOButtonThemeCornerRadiusHalfHeight’ for an oval shaped button.
Declaration
Objective-C
@property (assign, readwrite, nonatomic) CGFloat cornerRadius;
Swift
var cornerRadius: CGFloat { get set }
-
The offset of button’s shadow.
Declaration
Objective-C
@property (assign, readwrite, nonatomic) CGSize shadowOffset;
Swift
var shadowOffset: CGSize { get set }
-
The opacity of button’s shadow.
Declaration
Objective-C
@property (assign, readwrite, nonatomic) CGFloat shadowOpacity;
Swift
var shadowOpacity: CGFloat { get set }
-
The blur radius of button’s shadow.
Declaration
Objective-C
@property (assign, readwrite, nonatomic) CGFloat shadowRadius;
Swift
var shadowRadius: CGFloat { get set }
-
The color of button’s shadow.
Declaration
Objective-C
@property (assign, readwrite, nonatomic) UIColor *_Nonnull shadowColor;
Swift
var shadowColor: UIColor { get set }
-
Base style applied to confirmation buttons such as:
next
,done
.Declaration
Objective-C
+ (nonnull instancetype)basePositiveButtonTheme;
Swift
class func basePositive() -> Self
-
Base style applied to cancellation buttons such as:
cancel
,dismiss
.Declaration
Objective-C
+ (nonnull instancetype)baseNegativeButtonTheme;
Swift
class func baseNegative() -> Self
-
Base style applied to general buttons.
Declaration
Objective-C
+ (nonnull instancetype)baseNeutralButtonTheme;
Swift
class func baseNeutral() -> Self