VOFontTheme

@interface VOFontTheme : NSObject <NSCopying>

VOFontTheme 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 VOFontTheme.

    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 VOFontTheme instance.

    color

    - the font color used by the VOFontTheme instance.