Chat UIKit iOS UIKit v3
Chat UIKit iOS UIKit
Chat UIKit
iOS UIKit
Version 3

Font resources

Copy link

The SBUFontSet class manages a set of UIFont properties used in UIKit views. All fonts used in UIKit are configured under this class but you can also customize the values of SBUFontSet to use different fonts in views.

Note : To use a new font type, you need to re-customize the theme you're currently using.


Customize fonts

Copy link

You can override the properties of SBUFontSet to customize the fonts. You must configure the fonts in SBUFontSet first before creating custom themes in order to apply the customized fonts to the themes. Any font changes made after won't be applied to themes that were created before. Fonts that are selected to be used in the global theme will be applied to all themes in UIKit.

SBUFontSet.body1 = .systemFont(ofSize: 20, weight: .bold)

List of colors for elements

Copy link
ElementFontStyleSize

H1

SF Pro Text

Medium

18

H2

SF Pro Text

Bold

16

Subtitle 1

SF Pro Text

Regular

16

Subtitle 2

SF Pro Text

Medium

14

Body 1

SF Pro Text

Regular

14

Body 2

SF Pro Text

Regular

14

Button 1

SF Pro Display

Semibold

20

Button 2

SF Pro Display

Medium

16

Button 3

SF Pro Display

Medium

14

Caption 1

SF Pro Display

Bold

12

Caption 2

SF Pro Display

Regular

12

Caption 3

SF Pro Display

Regular

11