Color resources
The ColorSet
class manages a set of Color
properties used in SwiftUI views, which includes background and main colors. While the SwiftUI provides a default color set, you can customize the values of ColorSet
and create your own colorful views. See what the default color palette used in ColorSet
looks like below.
Note :
ColorSet
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 colors
You can override the properties of ColorSet
to customize the colors. However, you must also customize and apply the changes to the theme that's using the colors. Make sure you select and change colors you wish to use in your client app and then customize the theme accordingly.
Note : Change the color values before you customize the theme.