BDKTheme

Objective-C

@interface BDKTheme : NSObject <NSCopying>

Swift

class BDKTheme : NSObject, NSCopying

A class used to style the Bandyer SDK view controllers. Please see the provided documentation for knowledge about mapping between properties and UI components.

  • @brief The default theme used by all Bandyer SDK view controllers that support configurable theme. All themable view controllers have a configuration property that takes a nullable theme object.

    @discussion If you don’t set the theme, the default theme will be used to customize that view controller’s appearance, otherwise the given theme will be used.

    Declaration

    Objective-C

    + (nonnull BDKTheme *)defaultTheme;

    Swift

    class func `default`() -> BDKTheme
  • The primary background color of the theme. This will be used as the backgroundColor for any views with this theme.

    Declaration

    Objective-C

    @property (nonatomic, strong) UIColor *_Nonnull primaryBackgroundColor;

    Swift

    var primaryBackgroundColor: UIColor { get set }
  • The secondary background color of the theme. This will be used as the backgroundColor for any supplementary views inside a view with this theme.

    Declaration

    Objective-C

    @property (nonatomic, strong) UIColor *_Nonnull secondaryBackgroundColor;

    Swift

    var secondaryBackgroundColor: UIColor { get set }
  • The tertiary background color of the theme. This will be used as the backgroundColor for any supplementary views inside a view with this theme. Those views will have less visual importance than the views coloured with the secondary background color.

    Declaration

    Objective-C

    @property (nonatomic, strong) UIColor *_Nonnull tertiaryBackgroundColor;

    Swift

    var tertiaryBackgroundColor: UIColor { get set }
  • The accent color of the theme. This will be used as the tintColor for any views with this theme.

    Declaration

    Objective-C

    @property (nonatomic, strong) UIColor *_Nonnull accentColor;

    Swift

    var accentColor: UIColor { get set }
  • @brief The keyboard appearance of the theme. This will be used as the keyboardAppearance for any text views with this theme.

    @discussion Default is UIKeyboardAppearanceDefault.

    Declaration

    Objective-C

    @property (nonatomic) UIKeyboardAppearance keyboardAppearance;

    Swift

    var keyboardAppearance: UIKeyboardAppearance { get set }
  • @brief The bar translucent property of the theme. This will be used as the translucent property for any bars with this theme.

    @discussion Default is YES.

    Declaration

    Objective-C

    @property (nonatomic) BOOL barTranslucent;

    Swift

    var barTranslucent: Bool { get set }
  • @brief The bar style property of the theme. This will be used as the barStyle property for any bars with this theme.

    @discussion Default is UIBarStyleDefault.

    Declaration

    Objective-C

    @property (nonatomic) UIBarStyle barStyle;

    Swift

    var barStyle: UIBarStyle { get set }
  • The bar tint color of the theme. This will be used as the barTintColor for any bars with this theme.

    Declaration

    Objective-C

    @property (nonatomic, strong, nullable) UIColor *barTintColor;

    Swift

    var barTintColor: UIColor? { get set }
  • The navigation bar title font of the theme. This will be used as the font attribute for any navigation bar titles with this theme.

    Declaration

    Objective-C

    @property (nonatomic, strong, nullable) UIFont *navBarTitleFont;

    Swift

    var navBarTitleFont: UIFont? { get set }
  • The tab bar item font of the theme. This will be used as the font attribute for any tab bar items with this theme.

    Declaration

    Objective-C

    @property (nonatomic, strong, nullable) UIFont *barItemFont;

    Swift

    var barItemFont: UIFont? { get set }
  • The body font of the theme. This will be used as the font for any text views with this theme.

    Declaration

    Objective-C

    @property (nonatomic, strong, nullable) UIFont *bodyFont;

    Swift

    var bodyFont: UIFont? { get set }
  • The font of the theme. This will be used for all standard labels using this theme. @remark Make sure to set an appropriate size since the size you provide will be used as default one.

    Declaration

    Objective-C

    @property (nonatomic, strong, nullable) UIFont *font;

    Swift

    var font: UIFont? { get set }
  • The emphasis font of the theme. This will be used for all labels that require emphasis. @remark Make sure to set an appropriate size since the size you provide will be used as default one.

    Declaration

    Objective-C

    @property (nonatomic, strong, nullable) UIFont *emphasisFont;

    Swift

    var emphasisFont: UIFont? { get set }
  • The secondary font of the theme. This will be used for all secondary labels using this theme. @remark Make sure to set an appropriate size since the size you provide will be used as default one.

    Declaration

    Objective-C

    @property (nonatomic, strong, nullable) UIFont *secondaryFont;

    Swift

    var secondaryFont: UIFont? { get set }
  • The medium font point size of the theme. This will be used to size all medium labels using this theme.

    Declaration

    Objective-C

    @property (nonatomic) CGFloat mediumFontPointSize;

    Swift

    var mediumFontPointSize: CGFloat { get set }
  • The large font point size of the theme. This will be used to size all large labels using this theme.

    Declaration

    Objective-C

    @property (nonatomic) CGFloat largeFontPointSize;

    Swift

    var largeFontPointSize: CGFloat { get set }