AI Integration Quick Reference
AI Integration Quick Reference
When to use this
- One screen should look different from the rest of the Kit.
- You need to change a region the theme does not reach — a corner radius, a chip, a separator.
- You want a repeatable pattern that applies to every component.
Prerequisites
- The UI Kit is installed and you are logged in.
- You know which toolkit you use:
CometChatSwiftUIorCometChatUIKit(one per app).
Styling Pattern
- SwiftUI
- UIKit
Every component takes a Nested parts — a row, an avatar, a bubble — have styles of their own, set on the
component’s style.
style: argument — a struct named after the component. Every
property is optional and resolved when the view draws, so a style carries only what you
change and everything else follows the theme:Core concepts
- Precedence. SwiftUI: the
style:argument, then the theme, then the Kit default. UIKit: the instance’s style, then the component’s static style, then the theme, then the Kit default. - Sparse styles. A property you leave unset is never frozen: it reads the theme every time the component draws, so a later theme change still reaches it.
- Liquid Glass. On iOS 26 the Kit’s navigation bars and the composer are Liquid Glass and
belong to the system; their background properties apply on iOS 18–25, with Reduce
Transparency on, or with
renderPathset to.fallback.
Implementation
Chat Lists & Messaging
Conversations

- SwiftUI
- UIKit
itemStyle is the row — name, subtitle, date, badge, avatar and receipt.Users
- SwiftUI
- UIKit
Groups
- SwiftUI
- UIKit
Message Header

- SwiftUI
- UIKit
Message List
The list’s background, separators and bubbles. Per-kind bubble styles are on Message Bubble Styling.
- SwiftUI
- UIKit
Message Composer

- SwiftUI
- UIKit
attachmentPopupStyle, attachmentTrayStyle, attachmentTileStyle,
suggestionListStyle.Group Members
- SwiftUI
- UIKit
Thread Header
- SwiftUI
- UIKit
Mentions
How a mention reads in the conversation list’s last-message line.
- SwiftUI
- UIKit
Search
- SwiftUI
- UIKit
Message Information
- SwiftUI
- UIKit
Pinned and Saved Messages
- SwiftUI
- UIKit
Reaction List
- SwiftUI
- UIKit
Calling UI
Call Buttons
- SwiftUI
- UIKit
Call Logs
- SwiftUI
- UIKit
Outgoing Call
- SwiftUI
- UIKit
The Kit has no incoming-call screen of its own in v6 yet, so there is no incoming-call style.
Base Components
Avatar
- SwiftUI
- UIKit
AvatarStyle — size, backgroundColor, textColor, font — is set wherever an avatar
appears: a row’s itemStyle.avatarStyle, the header’s avatarStyle:Badge and Status Indicator
- SwiftUI
- UIKit
BadgeStyle styles the unread count and StatusIndicatorStyle the presence dot, through
the row’s style:Customization matrix
Next Steps
Message Bubble Styling
Incoming, outgoing and per-kind bubbles.
Styles
How style resolution works in each toolkit.