FontTheme
@interface FontTheme : NSObject <NSCopying>
FontTheme is used to theme all text in the application.
-
Color of text.
Declaration
Objective-C
@property (assign, readwrite, nonatomic) UIColor *_Nonnull color;Swift
var color: UIColor { get set } -
Alternative text color, used in the same screen.
Declaration
Objective-C
@property (assign, readwrite, nonatomic) UIColor *_Nonnull alternateColor;Swift
var alternateColor: UIColor { get set } -
Font of text.
Declaration
Objective-C
@property (assign, readwrite, nonatomic) UIFont *_Nonnull font;Swift
var font: UIFont { get set } -
Creates an instance of FontTheme.
Declaration
Objective-C
+ (nonnull instancetype)fontThemeWithFont:(nonnull UIFont *)font color:(nonnull UIColor *)color;Swift
convenience init(font: UIFont, color: UIColor)Parameters
font- the font used by the
FontThemeinstance.color- the font color used by the
FontThemeinstance.
View on GitHub
FontTheme Class Reference