> ## Documentation Index
> Fetch the complete documentation index at: https://www.cometchat.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Core

> The core chat features of the CometChat iOS UI Kit v6 — messaging, media, receipts, typing, presence, reactions, mentions, pin and save, rich text, threads, quoted replies, groups, moderation, reporting and search — and the components that power each.

> [accordion] AI Integration Quick Reference
>
> | Field | Value |
> | - | - |
> | Products | `CometChatSwiftUI` (SwiftUI) or `CometChatUIKit` (UIKit) |
> | Required setup | `CometChatSession.initialize(appID:region:)` then `CometChatSession.login(uid:authKey:)` — before rendering any component |
> | Core features | Instant Messaging, Media Sharing, Read Receipts, Mark as Unread, Typing Indicator, User Presence, Reactions, Mentions, Pin & Save Messages, Pin Conversations, Rich Text Formatting, Threaded Conversations, Thread Subscription, Quoted Reply, Group Chat, Moderation, Report Message, Search |
> | Key components | `CometChatConversations`, `CometChatMessageList`, `CometChatMessageComposer`, `CometChatMessageHeader`, `CometChatUsers`, `CometChatGroups`, `CometChatGroupMembers`, `CometChatMessageInformation`, `CometChatThreadHeader`, `CometChatPinnedMessages`, `CometChatSavedMessages`, `CometChatFlagMessage`, `CometChatSearch` |
> | Theming | See [Theming](https://www.cometchat.com/docs/ui-kit/ios/v6/theming.md) |

The UI Kit's components work together to deliver a complete chat experience. The sections below map each
core feature to the components that power it. Unless a section says otherwise, a feature works the same in
both toolkits and needs no code.

## Instant Messaging

Real-time text messaging — users send and receive messages instantly.

![A chat with text, an image with reactions, a quoted reply with a thread, a missed call and the New separator](https://mintcdn.com/cometchat-22654f5b/pWDsskjSUHgot30F/images/ui-kit/ios/v6/docs-messageListMixed.png?fit=max\&auto=format\&n=pWDsskjSUHgot30F\&q=85\&s=d1afd10cac22a4e9d085b7e6ff226d42)

| Component | Role |
| - | - |
| [CometChatMessageComposer](https://www.cometchat.com/docs/ui-kit/ios/v6/message-composer.md) | Writes and sends text messages. |
| [CometChatMessageList](https://www.cometchat.com/docs/ui-kit/ios/v6/message-list.md) | Renders sent and received messages as bubbles, live. |

## Media Sharing

Share several images, videos, audio files and documents in one send. The attachment button opens a
multi-select picker; the picks stage in a tray above the input with per-file upload progress, and send
together with the text as their caption.

![The composer's attachment tray staging several picks above the input](https://mintcdn.com/cometchat-22654f5b/pWDsskjSUHgot30F/images/ui-kit/ios/v6/docs-composerTray.png?fit=max\&auto=format\&n=pWDsskjSUHgot30F\&q=85\&s=f3aba90f1471300d8492d99894c93b69)

| Component | Role |
| - | - |
| [CometChatMessageComposer](https://www.cometchat.com/docs/ui-kit/ios/v6/message-composer.md) | The picker, camera, files, an inline voice-note recorder, and the tray that uploads before send. |
| [CometChatMessageList](https://www.cometchat.com/docs/ui-kit/ios/v6/message-list.md) | A bubble per media kind, with a send of several attachments grouped as one batch. |

Images and videos render as a **grid** of up to four tiles with "+N"; a tap opens the Kit's full-screen
viewer. Audio and voice notes render as an inline player, and files
as stacked file cards. `enableMultipleAttachments: false` switches to the older one-attachment-per-message
bubbles.

## Read Receipts

Message status — sent, delivered and read.

| Component | Role |
| - | - |
| [CometChatConversations](https://www.cometchat.com/docs/ui-kit/ios/v6/conversations.md) | Shows the delivery status of each conversation's last message. |
| [CometChatMessageList](https://www.cometchat.com/docs/ui-kit/ios/v6/message-list.md) | Shows the receipt on every message you send. |
| [CometChatMessageInformation](https://www.cometchat.com/docs/ui-kit/ios/v6/message-information.md) | Lists who received and read one sent message, and when. |

## Mark as Unread

Users mark a message as unread to come back to it, and the list can open at the first unread message.

| Component | Role |
| - | - |
| [CometChatMessageList](https://www.cometchat.com/docs/ui-kit/ios/v6/message-list.md) | The "Mark as unread" option, and starting from the first unread message. |
| [CometChatConversations](https://www.cometchat.com/docs/ui-kit/ios/v6/conversations.md) | Reflects the new unread count live. |

> [tab] SwiftUI
>
> The option is shown by default. To open the chat at the first unread message:
>
> ```swift theme={null}
> CometChatMessageList(user: user, startFromUnreadMessages: true)
> ```

> [tab] UIKit
>
> The option is hidden until you show it:
>
> ```swift theme={null}
> messageList.showMarkAsUnreadOption = true
> messageList.startFromUnreadMessages = true
> ```

> [!NOTE]
>
> **Unread counts in large groups:** unread counts are calculated only for groups with up to 300 members.
> See [Properties and Constraints](https://www.cometchat.com/docs/articles/properties-and-constraints.md#users-and-groups).

## Typing Indicators

Shows when someone is typing, in real time.

| Component | Role |
| - | - |
| [CometChatConversations](https://www.cometchat.com/docs/ui-kit/ios/v6/conversations.md) | Shows "typing…" in place of the last message. |
| [CometChatMessageHeader](https://www.cometchat.com/docs/ui-kit/ios/v6/message-header.md) | Shows "Typing…" in a chat, and "Alice is typing…" in a group. |

## User Presence

Whether contacts are online or offline. `CometChatSession.initialize` subscribes to every user's presence
by default, which is what lights these up.

| Component | Role |
| - | - |
| [CometChatConversations](https://www.cometchat.com/docs/ui-kit/ios/v6/conversations.md) | An online dot on one-to-one conversations. |
| [CometChatMessageHeader](https://www.cometchat.com/docs/ui-kit/ios/v6/message-header.md) | Online, or last seen, under the user's name. |
| [CometChatUsers](https://www.cometchat.com/docs/ui-kit/ios/v6/users.md) | An online dot in the user list. |
| [CometChatGroupMembers](https://www.cometchat.com/docs/ui-kit/ios/v6/group-members.md) | An online dot for each member. |

## Reactions

React to a message with an emoji instead of typing a reply.

![Reaction chips under message bubbles](https://mintcdn.com/cometchat-22654f5b/pWDsskjSUHgot30F/images/ui-kit/ios/v6/docs-messageListReactions.png?fit=max\&auto=format\&n=pWDsskjSUHgot30F\&q=85\&s=49465fe7afd0f94be5696cae36b9f980)

| Component | Role |
| - | - |
| [CometChatMessageList](https://www.cometchat.com/docs/ui-kit/ios/v6/message-list.md) | Reaction chips on bubbles, quick reactions in the option menu, and the emoji picker. |
| [CometChatReactionList](https://www.cometchat.com/docs/ui-kit/ios/v6/reaction-list.md) | Who reacted with what, opened from a chip. |

## Mentions

Address specific users by typing `@` to bring up suggestions.

![The composer's mention suggestions under an @ typed in the input](https://mintcdn.com/cometchat-22654f5b/pWDsskjSUHgot30F/images/ui-kit/ios/v6/docs-composerMentions.png?fit=max\&auto=format\&n=pWDsskjSUHgot30F\&q=85\&s=8dca19cdd5ee3bf4db362adb10d93dd4)

| Component | Role |
| - | - |
| [CometChatConversations](https://www.cometchat.com/docs/ui-kit/ios/v6/conversations.md) | Renders mentions in the last-message preview. |
| [CometChatMessageComposer](https://www.cometchat.com/docs/ui-kit/ios/v6/message-composer.md) | Suggests users — and group members, including `@all` — on `@`, and inserts the mention. |
| [CometChatMessageList](https://www.cometchat.com/docs/ui-kit/ios/v6/message-list.md) | Renders mentions with their own style, and yours highlighted. |

## Pin & Save Messages

Keep important messages in reach. **Pinning** highlights a message for everyone in the conversation;
**saving** bookmarks it privately for the acting user, across all of their conversations. Both come with
option-menu actions, bubble indicators and full-screen lists.

![Pinned and saved messages: a pin, a bookmark or both before the time on each status line](https://mintcdn.com/cometchat-22654f5b/pWDsskjSUHgot30F/images/ui-kit/ios/v6/docs-messageListPinSave.png?fit=max\&auto=format\&n=pWDsskjSUHgot30F\&q=85\&s=d47ad6e32b6b57600a4024707653ec49)

| Component | Role |
| - | - |
| [CometChatMessageList](https://www.cometchat.com/docs/ui-kit/ios/v6/message-list.md) | Pin/Unpin and Save/Unsave options, and the pin and bookmark on each status line. |
| [CometChatPinnedMessages](https://www.cometchat.com/docs/ui-kit/ios/v6/pinned-messages.md) | Full-screen list of a conversation's pinned messages. |
| [CometChatSavedMessages](https://www.cometchat.com/docs/ui-kit/ios/v6/saved-messages.md) | Full-screen, private list of the user's saved messages. |
| [CometChatMessageHeader](https://www.cometchat.com/docs/ui-kit/ios/v6/message-header.md) | An optional "Pinned messages" entry in the header. |

Each feature is switched on in your app's settings and carries its own limit. The options appear only when
the feature is on, and a user who reaches the limit sees a toast naming it — no code needed. See the
[Pin & Save Messages guide](https://www.cometchat.com/docs/ui-kit/ios/v6/guide-pin-and-save-messages.md).

## Pin Conversations

Users pin a conversation from its long-press menu; pinned conversations show a pin and stay above the
rest of the list. A conversation can also be **system-pinned** by your app's administrator through the
REST API: system pins sort above user pins, and a user can neither pin nor unpin them.

| Component | Role |
| - | - |
| [CometChatConversations](https://www.cometchat.com/docs/ui-kit/ios/v6/conversations.md) | The Pin/Unpin option, the row's pin, and pinned-first ordering. |

## Rich Text Formatting

Users style messages with bold, italic, strikethrough, inline code, code blocks, blockquotes, ordered and
unordered lists, and links.

![The composer's formatting toolbar under formatted text](https://mintcdn.com/cometchat-22654f5b/pWDsskjSUHgot30F/images/ui-kit/ios/v6/docs-composerRichText.png?fit=max\&auto=format\&n=pWDsskjSUHgot30F\&q=85\&s=fc0b88ba99ec8bd1a649f6090acd47cf)

| Component | Role |
| - | - |
| [CometChatMessageComposer](https://www.cometchat.com/docs/ui-kit/ios/v6/message-composer.md) | The formatting toolbar and the text-selection menu's format items. |
| [CometChatMessageList](https://www.cometchat.com/docs/ui-kit/ios/v6/message-list.md) | Renders formatted messages as the sender wrote them. |

Received formatting always renders. Composing it is opt-in:

> [tab] SwiftUI
>
> ```swift theme={null}
> CometChatMessageComposer(
>     user: user,
>     enableRichTextFormatting: true,
>     enabledFormats: Set(RichTextFormat.allCases)
> )
> ```

> [tab] UIKit
>
> Showing the toolbar turns on every format:
>
> ```swift theme={null}
> composer.showRichTextFormattingOptions = true
> ```

## Threaded Conversations

Reply to a specific message in a thread, keeping the main conversation tidy.

| Component | Role |
| - | - |
| [CometChatThreadHeader](https://www.cometchat.com/docs/ui-kit/ios/v6/thread-header.md) | The thread's parent message and its reply count. |
| [CometChatMessageComposer](https://www.cometchat.com/docs/ui-kit/ios/v6/message-composer.md) | Composes replies in the thread. |
| [CometChatMessageList](https://www.cometchat.com/docs/ui-kit/ios/v6/message-list.md) | "Reply in thread", the reply count under a parent, and the thread's own messages. |

### Thread Subscription

Users subscribe to or unsubscribe from a thread to choose whether its replies notify them. It is on by
default; remove a surface per screen with `hideThreadSubscriptionOption` on the message list, or
`hideThreadSubscription` on the thread header.

| Component | Role |
| - | - |
| [CometChatMessageList](https://www.cometchat.com/docs/ui-kit/ios/v6/message-list.md) | The Subscribe to thread / Unsubscribe from thread option. |
| [CometChatThreadHeader](https://www.cometchat.com/docs/ui-kit/ios/v6/thread-header.md) | The subscription bell on the thread. |

The server also subscribes users by itself — sending a message, replying in its thread, or being mentioned
in a reply — and the Kit reflects those the moment they happen. See
[Threaded Messages](https://www.cometchat.com/docs/ui-kit/ios/v6/guide-threaded-messages.md).

## Quoted Replies

Reply to a specific message with **Reply** in its option menu, or by swiping the bubble, keeping the
context in the conversation.

![The composer showing the message being replied to above the input](https://mintcdn.com/cometchat-22654f5b/pWDsskjSUHgot30F/images/ui-kit/ios/v6/docs-composerReply.png?fit=max\&auto=format\&n=pWDsskjSUHgot30F\&q=85\&s=7efd080c3d0067d9eb852575cfa6a554)

| Component | Role |
| - | - |
| [CometChatMessageList](https://www.cometchat.com/docs/ui-kit/ios/v6/message-list.md) | The Reply option, the quote inside the reply's bubble, and a tap on the quote jumps to the original. |
| [CometChatMessageComposer](https://www.cometchat.com/docs/ui-kit/ios/v6/message-composer.md) | Shows the quoted message above the input. |

## Group Chats

Conversations with many participants — teams, communities and group discussions.

| Component | Role |
| - | - |
| [CometChatGroups](https://www.cometchat.com/docs/ui-kit/ios/v6/groups.md) | Lists groups, and joins public and password-protected ones. |
| [CometChatGroupMembers](https://www.cometchat.com/docs/ui-kit/ios/v6/group-members.md) | Lists members with their scopes, and lets admins and moderators change scope, kick and ban. |
| [CometChatMessageList](https://www.cometchat.com/docs/ui-kit/ios/v6/message-list.md) | Group action messages — "Alice added Kabir" — in the conversation. |

## Moderation

Messages are filtered against the moderation rules you set up for your app.

> [!NOTE]
>
> Set up moderation rules in the [Moderation](https://www.cometchat.com/docs/moderation/overview.md) documentation.

| Component | Role |
| - | - |
| [CometChatMessageList](https://www.cometchat.com/docs/ui-kit/ios/v6/message-list.md) | Shows a notice under a message moderation disapproved — `hideModerationView` removes it. |

## Report Message

Users report an inappropriate message by choosing a reason and adding an optional remark.

> [!NOTE]
>
> Review reported messages in the [Flagged Messages](https://www.cometchat.com/docs/moderation/flagged-messages.md) documentation.

| Component | Role |
| - | - |
| [CometChatMessageList](https://www.cometchat.com/docs/ui-kit/ios/v6/message-list.md) | The Report option in the option menu. |
| [CometChatFlagMessage](https://www.cometchat.com/docs/ui-kit/ios/v6/flag-message.md) | The report dialog the option opens. |

## Conversation and Advanced Search

Find conversations and messages across chats, filtered by kind — photos, videos, links, documents, audio — and
scoped to one conversation when you open it from a chat.

| Component | Role |
| - | - |
| [CometChatSearch](https://www.cometchat.com/docs/ui-kit/ios/v6/search.md) | Searches conversations and messages; a result opens the conversation or the message. |
| [CometChatConversations](https://www.cometchat.com/docs/ui-kit/ios/v6/conversations.md) | The search field — a button that calls `onSearchClick` (SwiftUI) / `set(onSearchClick:)` (UIKit), where you open `CometChatSearch`. |
| [CometChatMessageList](https://www.cometchat.com/docs/ui-kit/ios/v6/message-list.md) | Jumps to and highlights a message opened from a result. |

> [!NOTE]
>
> The message header has no built-in search button. Add one as a header option and open a
> `CometChatSearch` scoped to the chat. See [Search Messages](https://www.cometchat.com/docs/ui-kit/ios/v6/guide-search-messages.md).

***

## Next Steps

> [card] [Components Overview](https://www.cometchat.com/docs/ui-kit/ios/v6/components-overview.md)
>
> Browse all available UI Kit components

> [card] [Theme](https://www.cometchat.com/docs/ui-kit/ios/v6/theming.md)
>
> Customize the look and feel of your chat UI

> [card] [Call Features](https://www.cometchat.com/docs/ui-kit/ios/v6/call-features.md)
>
> Add audio and video calling

> [card] [AI Features](https://www.cometchat.com/docs/ui-kit/ios/v6/ai-features.md)
>
> Explore AI-powered chat capabilities


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.