Chat UIKit SwiftUI v3
Chat UIKit SwiftUI
Chat UIKit
SwiftUI
Version 3

Color resources

Copy link

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 before SendbirdSwiftUI initialization, and if you change them at runtime, you must call SBUTheme.set(theme:)' to reflect them in the generated theme.


Customize colors

Copy link

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.

ColorSet.primaryMain = .red

Note : Change the color values before you customize the theme.