CometChatBuilderSettings object handles feature toggles and styling configuration. For deeper customizations, you can access settings directly and apply them to CometChat UI components.
Understanding the Customization Architecture
The iOS UI Kit Builder uses the following for customization:| Component | Purpose | When to Modify |
|---|---|---|
CometChatBuilderSettings | Feature flags and configuration loaded from JSON | Functional changes (enable/disable features) |
CometChatTheme | Theme colors and styling | UI/visual changes (colors) |
CometChatTypography | Font family and text styling | Typography changes |
CometChatBuilderSettings is loaded from your cometchat-builder-settings.json file at app launch using CometChatBuilderSettings.loadFromJSON().Applying Theme Settings
Apply your Builder configuration to CometChat theme at app launch:Accessing Feature Flags
You can access feature flags directly fromCometChatBuilderSettings.shared:
Chat Features
Call Features
Layout Settings
Style Settings
Conditional Feature Implementation
Use feature flags to conditionally show/hide UI elements:Customizing Colors Programmatically
You can customize colors beyond the JSON configuration:Customizing Typography
Customize fonts and text styling:Component-Level Customizations
Message List Configuration
Message Composer Configuration
Modifying the JSON Configuration
To change feature settings, edit yourcometchat-builder-settings.json file:
Changes to the JSON file require rebuilding the app to take effect.
Next Steps
UI Kit Builder Settings
Understand all available feature toggles and configuration options.
Components Overview
Explore all available UI components and their customization options.
Theming
Deep dive into colors, typography, and advanced styling.
Directory Structure
Understand how the exported code is organized.