Skip to main content
This page shows how to style one CometChat UI Kit component at a time, in both toolkits. To change every component at once, set the theme instead.

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: CometChatSwiftUI or CometChatUIKit (one per app).

Styling Pattern

Every component takes a 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:
Nested parts — a row, an avatar, a bubble — have styles of their own, set on the component’s style.

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 renderPath set to .fallback.

Implementation

Chat Lists & Messaging

Conversations

Conversations list styled through the theme and its style
What you’re changing: the toolbar title and the row’s name line.
itemStyle is the row — name, subtitle, date, badge, avatar and receipt.

Users

Groups

Message Header

The message header with the user's avatar, name and presence

Message List

The list’s background, separators and bubbles. Per-kind bubble styles are on Message Bubble Styling.
The message list with incoming and outgoing bubbles

Message Composer

The message composer with its input box, attachment and send buttons
The attachment menu, tray, tiles and mention list take their own style arguments — attachmentPopupStyle, attachmentTrayStyle, attachmentTileStyle, suggestionListStyle.

Group Members

Thread Header

Mentions

How a mention reads in the conversation list’s last-message line.
The composer suggesting members to mention

Message Information

Pinned and Saved Messages

Reaction List

Calling UI

Call Buttons

Call Logs

Outgoing Call

The Kit has no incoming-call screen of its own in v6 yet, so there is no incoming-call style.

Base Components

Avatar

AvatarStyle — size, backgroundColor, textColor, font — is set wherever an avatar appears: a row’s itemStyle.avatarStyle, the header’s avatarStyle:

Badge and Status Indicator

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.