Font resources
The FontSet
class manages a set of Font
properties used in SwiftUI views. All fonts used in SwiftUI are configured under this class but you can also customize the values of FontSet
to use different fonts in views.
Note :
FontSet
must be set beforeSendbirdSwiftUI
initialization, and if you change them at runtime, you must callSBUTheme.set(theme:)'
to reflect them in the generated theme.
Customize fonts
You can override the properties of FontSet
to customize the fonts. You must configure the fonts in FontSet
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 SwiftUI.
Note : Change the font values before you customize the theme.