Styling Approaches
- SwiftUI
- UIKit
- Theme —
CometChatThemein the environment, set with.cometChatTheme(_:). - Component style — a struct passed as
style:, for exampleCometChatConversationsStyle. Every property is optional.
How a style resolves
- SwiftUI
- UIKit
nil is filled from the current theme and colour scheme. Nothing is frozen at
construction, so switching appearance or theme restyles the unset parts.Font Customization
- SwiftUI
- UIKit
Set the family once on the theme:Or one component’s font through its style — a SwiftUI
Font:Theme Color Tokens
A style property left unset falls back to one of these. Full values are on Color Resources.Colors
Icon Tints
Button Colors
Per-Component Style Properties
Key properties for the busiest components. Each component’s page lists the rest.Conversations
- SwiftUI
- UIKit
Message List
- SwiftUI
- UIKit
Message Composer
- SwiftUI
- UIKit
Message Header
- SwiftUI
- UIKit
Related
- Theme Introduction — global theming.
- Component Styling — an example for every component.
- Color Resources — the default palette.
- Customization Overview — every customization category.