> ## 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.

# Upgrading from v5

> What changes when moving an app from CometChatUIKitSwift 5.x to the CometChat iOS UI Kit v6: the package, set-up and login, renamed types and components, and behaviour per component.

> [accordion] AI Integration Quick Reference
>
> ```json theme={null}
> {
>   "from": "CometChatUIKitSwift 5.x (CocoaPods / xcframework, UIKit)",
>   "to": "CometChat iOS UI Kit v6 — https://github.com/cometchat/cometchat-uikit-ios.git from 6.0.0-beta.1, SPM only, iOS 18, Swift 6",
>   "products": "CometChatUIKit (v5's vocabulary — the upgrade path) or CometChatSwiftUI (a rewrite); either re-exports CometChatCore",
>   "setup": "CometChatUIKit.init(uiKitSettings:) → CometChatSession.initialize(appID:region:); CometChatUIKit.login(uid:) → CometChatSession.login(uid:authKey:); login(authToken:); logout()",
>   "renamed": {"CometChatThreadedMessageHeader": "CometChatThreadHeader", "CometChatAIAssistanceChatHistory": "CometChatAIAssistantChatHistory (v5 name kept as a deprecated alias)", "UIKitSettings": "CometChatSession.initialize parameters", "viewModel": "<component>Store"},
>   "kept": "open override points, fluent set(...), view slots, CometChatUIKit.sendTextMessage(message:), the event buses and listener protocols",
>   "not in v6": ["CometChatIncomingCall", "CometChatCompactMessageComposer", "CometChatCardEvents", "UIKitSettings"]
> }
> ```

## Introduction

If your app uses v5, you are a UIKit app. v6's UIKit toolkit was built to keep your
customisation working, so most of the migration is renaming imports rather than
rewriting screens.

v6 is a new package, not a point release: one Swift package with two toolkits over a shared
core. The UIKit toolkit keeps v5's names, `open` override points and fluent `set(...)` API;
the SwiftUI toolkit has its own names. The screens look like v5's, and a few interactions
change. Those are listed per component below.

## Key Migration Changes

| Area | v5 | v6 |
| - | - | - |
| Distribution | CocoaPods or xcframework, `CometChatUIKitSwift` | Swift Package Manager, `CometChatUIKit` (or `CometChatSwiftUI`) |
| Minimum iOS | earlier releases supported | iOS 18, Swift 6 |
| Set-up | `CometChatUIKit.init(uiKitSettings:)` with `UIKitSettings` | `CometChatSession.initialize(appID:region:)` — `async throws` |
| Login | `CometChatUIKit.login(uid:)`, `login(authToken:)` with a result callback | `CometChatSession.login(uid:authKey:)`, `login(authToken:)` — `async throws` |
| Data | each component's `viewModel` | each component's store — `conversationsStore`, `usersStore`, `groupsStore` … — shared by both toolkits |
| Theming | global mutable statics | `CometChatUIKitTheme` and per-screen styles, resolved at render |
| Events | v5's buses and listeners, delivered on any thread | the same names, delivered on the main thread, in order |
| Behaviour | v5's own | v5's look; a few interactions change — see [Component by component](#7-component-by-component) |
| Screens | composite screens and the Kit's own messages screen | components only — you compose the chat, thread and details screens |

## Before you start: two prerequisites

> [!WARNING]
>
> **v6 is SPM only.** CocoaPods trunk becomes read-only in December 2026 and v6 would
> have been a new pod, so it is not published there. If you integrate via CocoaPods,
> moving to SPM is part of this upgrade.

> [!WARNING]
>
> **v6 requires iOS 18.** v5 supports older versions; v6 does not.

## 1. Swap the dependency

```swift theme={null}
// v5
import CometChatUIKitSwift

// v6
import CometChatUIKit
```

`CometChatUIKit` is the module name of the **UIKit toolkit**. It is not "the whole Kit" —
the SwiftUI toolkit is a separate product you do not need.

```swift theme={null}
// Package.swift
.package(url: "https://github.com/cometchat/cometchat-uikit-ios.git", from: "6.0.0-beta.1")
// target dependency: .product(name: "CometChatUIKit", package: "cometchat-uikit-ios")
```

Remove the `CometChatUIKitSwift` pod (or xcframework) and its `CometChatSDK` pod: the Chat SDK
resolves with the package. `import CometChatUIKit` also brings `CometChatCore` — `CometChatSession`
and the Kit's value types — so one import is enough.

## 2. Initialise and log in

`UIKitSettings` and the callback-based `CometChatUIKit.init` / `login` / `logout` are replaced by
`CometChatSession`, which is `async`:

| v5 | v6 |
| - | - |
| `UIKitSettings().set(appID:).set(region:).set(authKey:).subscribePresenceForAllUsers()` | the parameters of `CometChatSession.initialize(appID:region:subscribePresenceForAllUsers:)` — presence for all users is on by default, and the socket always connects |
| `setAIFeatures`, `setExtensions` | none — AI features and extensions are options on the components that show them |
| `CometChatUIKit.init(uiKitSettings:)` | `try await CometChatSession.initialize(appID:region:)` |
| `CometChatUIKit.login(uid:)` | `try await CometChatSession.login(uid:authKey:)` — the auth key moves from the settings to the call |
| `CometChatUIKit.login(authToken:)` | `try await CometChatSession.login(authToken:)` |
| `CometChatUIKit.logout(user:)` | `try await CometChatSession.logout()` |
| `CometChat.getLoggedInUser()` | still works; `CometChatSession.loggedInUser` is the same |
| `CometChatUIKit.createUser(user:)` | none — create users on your server, or with the SDK's `CometChat.createUser` |
| calling turned on by linking the Calls SDK | `initialize(appID:region:enableCalling: true)` — off by default |

> [tab] SwiftUI
>
> ```swift theme={null}
> struct RootView: View {
>     @State private var ready = false
>
>     var body: some View {
>         Group {
>             if ready { CometChatConversations() } else { ProgressView() }
>         }
>         .task {
>             do {
>                 try await CometChatSession.initialize(appID: "APP_ID", region: "REGION")
>                 if CometChatSession.loggedInUser == nil {
>                     try await CometChatSession.login(uid: "UID", authKey: "AUTH_KEY")
>                 }
>                 ready = true
>             } catch {
>                 print("set-up failed:", error.localizedDescription)
>             }
>         }
>     }
> }
> ```

> [tab] UIKit
>
> ```swift theme={null}
> import UIKit
> import CometChatUIKit
>
> @MainActor
> func startChat(in window: UIWindow) async {
>     do {
>         try await CometChatSession.initialize(appID: "APP_ID", region: "REGION")
>         if CometChatSession.loggedInUser == nil {
>             try await CometChatSession.login(uid: "UID", authKey: "AUTH_KEY")
>         }
>         window.rootViewController = UINavigationController(rootViewController: CometChatConversations())
>     } catch {
>         print("set-up failed:", error.localizedDescription)
>     }
> }
> ```

Errors are a `CometChatError` with the SDK's `code` and `message`. See
[Methods](https://www.cometchat.com/docs/ui-kit/ios/v6/methods.md).

## 3. Renamed types

v6 exposes its own value types alongside `CometChatSDK`, so anything that would have
been ambiguous is prefixed:

| v5 / SDK | v6 |
| - | - |
| `Conversation` | `ChatConversation` |
| `User` | `ChatUser` |
| `Group` | `ChatGroup` |
| `SelectionMode.none` | `SelectionMode.disabled` |

Your delegates and callbacks still hand you **SDK types**, exactly as in v5. The `Chat*`
types are the stores' value types and you will rarely meet them.

### Renamed and removed components

| v5 | v6 |
| - | - |
| `CometChatThreadedMessageHeader` | `CometChatThreadHeader` — no alias |
| `CometChatMessageList`, `CometChatMessageHeader`, `CometChatMessageComposer`, `CometChatConversations`, `CometChatUsers`, `CometChatGroups`, `CometChatGroupMembers`, `CometChatSearch`, `CometChatPinnedMessages`, `CometChatSavedMessages`, `CometChatCallButtons`, `CometChatCallLogs`, `CometChatOutgoingCall`, `CometChatOngoingCall` | the same names |
| `CometChatMessageTemplate`, `CometChatMessageBubble`, `CometChatMessageOption`, `CometChatAvatar`, `CometChatListBase` | the same names |
| `CometChatIncomingCall` | not in v6 |
| `CometChatCompactMessageComposer` | not in v6 — `CometChatMessageComposer` is the composer |
| `CometChatAIAssistanceChatHistory` | `CometChatAIAssistantChatHistory` — the v5 name still compiles, as a deprecated alias |
| `CometChatNotificationFeed` | the same name |
| `CometChatCardEvents` | removed — card taps are `ccCardActionClicked` on `CometChatUIEvents` |
| `viewModel` on each component | `conversationsStore`, `usersStore`, `groupsStore`, `groupMembersStore` … |

If a file imports both toolkits, a name that both declare is ambiguous — `AvatarStyle`,
`CallActionBubbleStyle`, `CallButtonStyle`, `DateStyle`, `NewMessageIndicatorStyle`,
`ScopeChangeStyle` and `StatusIndicatorStyle` are such names, as are the components. Write the
module: `CometChatUIKit.AvatarStyle`. An app that uses one toolkit never meets this.

The Kit has no thread screen or chat screen of its own. v5's sample `ThreadedMessagesVC` and
`MessagesVC` are yours to compose from the header, list and composer — see
[Threaded Messages](https://www.cometchat.com/docs/ui-kit/ios/v6/guide-threaded-messages.md).

## 4. What still works unchanged

* **Subclassing.** `defaultSetup`, `setupStyle`, `showEmptyView`, `showErrorView`,
  `reloadData`, `configureMenu`, `updateNavigationBarTitleWithCount` are still `open`
  and still named the same.
* **Fluent setters.** `set(title:)`, `set(hideBackButton:)`, `set(datePattern:)`.
* **View slots.** `set(listItemView:)`, `set(leadingView:)`, `set(titleView:)`,
  `set(subtitleView:)`, `set(trailView:)`, `set(loadingView:)`, `set(errorView:)`,
  `set(emptyView:)`.
* **`options` and `addOptions`**, taking `[CometChatConversationOption]` as they did in v5 —
  and now driving both the swipe actions and the long-press menu.
* **The conversation list's chrome.** Large titles and the search field in the navigation
  item, as `CometChatListBase` set them up in v5.
* **`ConversationsStyle.style`**, the one global default, and v5's style names —
  `largeTitleFont`, `tableViewSeparator`, `listItemTitleTextColor`, `pinActionIconTint`, the
  whole `SearchBarStyle` set.
* **The list methods.** `getConversationList()`, `getSelectedConversations()`, `size()`,
  `insert`, `update`, `remove`, `clearList()`, `connect()`, `disconnect()`.
* **Objective-C.** The toolkit is `@objc` throughout.

## 5. What changed

**Theming is an object, not global mutable state.** v5's mutable statics are gone. Set
properties on `CometChatUIKitTheme`, or pass a style per screen. A v5 customisation that
assigned to a global theme static has no v6 equivalent — see [Theming](https://www.cometchat.com/docs/ui-kit/ios/v6/theming.md).

**Styles resolve at render.** An unset style property falls through to the theme instead
of freezing a value when the component is constructed.

**Events keep v5's names.** `CometChatMessageEvents` and the other buses, their listener
protocols and `CometChatUIKit.sendTextMessage(message:)` carry over. What changed — delivery
on the main thread, some payloads, and the v5 callbacks that are gone — is
listed in [Events](https://www.cometchat.com/docs/ui-kit/ios/v6/events.md).

**Long press and context menus are mutually exclusive.** iOS gives the gesture to the
context menu, so `onItemLongClick` fires only when no menu is configured — and neither fires
while selection is on.

**The conversation list's selection fires once.** v5 called `onSelection` on every toggle; v6
calls it from the submit button in the navigation bar, with the whole set. Tapping a row in selection mode only toggles it and does not call
`onItemClick`.

**Its search field is a button.** v5 filtered the list as you typed; v6 calls `onSearchClick`
and leaves the list alone, which is what v5's own `searchBarTextDidBeginEditing` did on this
screen. Open your search screen from the callback.

**`enablePinConversation` ships on.** v5 shipped it off. Set it to `false` for v5's
behaviour.

**The row separator is hidden by default,** which is what v5's `hideSeparator = true` did on
this screen. Set `hideSeparator = false` and style it with `tableViewSeparator`.

**The message header.** Still a `UIView` with v5's names, but: back is hidden by default
and only calls `set(onBack:)`; the thread-subscription bell moved to the thread header;
`set(controller:)`, `additionalConfiguration` and `disableTyping` are gone; `set(options:)`
takes `[UIAction]` and shows or hides the ⋯ by itself; and one `MessageHeaderStyle`
replaces the separate avatar, status-indicator and typing styles. See
[Message Header](https://www.cometchat.com/docs/ui-kit/ios/v6/message-header.md).

**The groups list mostly behaves as v5's does, and differs in a few listed places.** As in
v5, a tap opens a joined group and joins a public one under the "Joining Group" alert before
calling `onItemClick`; `onSelection` fires on every toggle and `onSelectedItemProceed` on the
tick; a second tap deselects in single selection; a search is a second one-page list; and
one member reads "1 Member". What a v5 app will notice:

* `joinPasswordProtectedGroup` is gone. A password group you have not joined comes to
  `onItemClick`: check `hasJoined`, ask for the password and call
  `groupsStore.join(_:password:)`.
* A failed join calls `onError` and nothing else — no "Can't join group" alert, and no
  `showBannedUserAlert()`.
* The search field is shown by default, and a search runs 0.6 s after the last keystroke.
* A failed next page puts the error state up even with rows loaded; Retry reloads the first
  page. A failed refresh or search still leaves the rows.
* Removing the last group leaves a blank list; the empty state is for the server answering
  with nothing.
* Loading is a 30-row shimmer, and the list no longer reloads each time the screen appears.
* A group you are banned from keeps its row.
* In selection mode a tap also calls `onItemClick` when one is set. The tick keeps the
  selection and the mode; the cross clears the selection and keeps the mode.
* `selectionLimit` is gone: a selection has no limit.

What is new: a Retry button on the error state, options as a long-press menu as well as
swipe actions, and Liquid Glass on iOS 26. What is renamed: `viewModel` is `groupsStore`,
`menus` is `setOverflowMenu(_:)`, and `onDidSelect` is gone in favour of
`set(onItemClick:)`. Three v5 defects are not copied: a refresh no longer replaces your
`groupsRequestBuilder` with the default one, a search no longer leaves its keyword on your
list builder, and a tap on a group you have already joined no longer announces a
member-joined event. The table is under [Groups](#groups).

**The users list keeps v5's names and look.** As in v5, the
screen uses large titles with 64-pt rows, a 40-pt avatar, a 14-pt presence dot and letter
headers in the highlight colour; `set(userRequestBuilder:)`, `set(searchRequestBuilder:)`,
the `(User?) -> UIView` slots — `set(subtitle:)` included — `set(options:)` / `add(options:)`
with `CometChatUserOption`, `set(onLoad:)` with the users by letter section, the three
static styles and v5's 50 `UsersStyle` names all carry over; `onSelectedItemProceed` fires
on the tick; a search still leaves its keyword on your list builder when no search builder
is set; each return to the screen still loads the next page; and a block announced on
`CometChatUserEvents` updates the row. What a v5 app will notice:

* `onSelection` fires on the tick, with the whole selection, not on every toggle — use
  `set(onSelectionChange:)` for every change. The tick keeps the selection and the mode;
  the cross clears the selection and keeps the mode.
* In single selection a second tap keeps the row selected. Changing `selectionMode` keeps
  the selection; leaving the screen clears it.
* `selectionLimit` is gone: a selection has no limit.
* The search field is shown by default. A search runs 300 ms after the last keystroke,
  pages through its results and keeps the letter headers; clearing it fetches the first
  page again rather than restoring the loaded list. `set(searchRequestBuilder:)` is a
  second builder, used only while searching, where v5 replaced the list's builder with it.
* A user who comes online moves to the top, with their letter's header repeated there; the
  list does not scroll. The list keeps listening while another screen covers it.
* A reconnect and pull to refresh clear the rows and load the first page; an empty refresh
  shows the empty state.
* With rows on screen, a page or a search that fails is silent — no `onError`. With none,
  the error state shows, now with a Retry that asks for the next page.
* `onLoad` and `onEmpty` are called when the list changes into that state, and each time
  the screen appears — not on every reload.
* Loading is a 30-row shimmer, and the end of the list is found by one more, empty, page.
* A view from `set(listItemView:)` gets no tap, long press, selection or swipe.
* Options are also the row's long-press menu, which `onItemLongClick` replaces, and an
  option's v5 `onClick` receives the row's index, not the section's.

What is renamed: `viewModel` is `usersStore`, and `onSearch(state:text:)` is `onSearch(text:)`. The
`onSelection` and `onSelectedItemProceed` properties are set with `set(onSelection:)` and
`set(onSelectedItemProceed:)`; `selectedCellCount`, `updateSelectedCellCount(isSelected:)`,
`manageSelectionState(for:in:at:)`, `setupViewModel()`, `onDidSelect` and `titleAlignment`
are gone. What is new: visibility setters (`setSearchBoxVisibility(_:)` and the
rest), `selectUser(_:mode:)`, `refreshUsers()`, `configureOptions(for:indexPath:)` and
`configureMenu(for:indexPath:)`, storyboard support, and Liquid Glass on iOS 26. The table
is under [Users](#users).

**The members list mostly behaves as v5's does, and differs in a few listed places.** As in
v5, the owner kicks and changes the scope of anyone, an admin of moderators and
participants, and a moderator of participants; scope names are localised;
`set(groupMemberRequestBuilder:)` and `set(groupMemberSearchRequestBuilder:)` shape the
request; Cancel or the back button is shown; a failed page leaves a loaded list alone; and
with a click handler set a tap is the handler's and selects nothing. What a v5 app will
notice:

* A moderator cannot ban. The owner bans anyone, an admin moderators and participants.
* Your scope is read from your own row among the rows on screen, not from the group. Until
  that row is loaded you count as a participant and no actions are offered; the owner is
  recognised by the group's owner uid regardless.
* The scope sheet lists all three scopes with the member's current one selected, and
  disables the ones you may not give. Save sends the request even when the scope is
  unchanged.
* Every dialog closes before its request is sent; the sheet shows no spinner.
* Kick and Ban ask in an alert — "Kick Alice ?", "Are You sure you want to kick Alice?",
  **Yes** / **No** — not an action sheet.
* A failed kick, ban or scope change leaves the list untouched, calls `onError` and shows
  the error as a snackbar.
* The search field is shown by default, and a search runs 0.6 s after the last keystroke.
* A member who joins or is added appears at the top. A user unbanned through the Kit is
  listed, at the top, as a participant.
* When you are banned from the group the screen stays and a snackbar says so; it does not
  dismiss itself.
* A reconnect reloads what is on screen: the search, with its keyword, or the first page.
* A member you have blocked, or who has blocked you, shows no presence dot.
* A custom `trailView` sits beside the scope chip instead of replacing it.
* Selection has a bar — the count, a discard and a tick — whenever a selection mode is on.
  `onSelection` and `onSelectedItemProceed` are both called from the tick, which keeps the
  selection and the mode; the discard clears the selection and leaves selection mode. In
  single selection a second tap deselects, and `isFurtherSelectionEnabled = false` lets a
  tap deselect only.

What is new: the row's actions as a long-press menu as well as swipe actions, a presence dot
that updates while the list is open, and `set(excludeOwner:)`. What is renamed: `viewModel`
is `groupMembersStore` and `onSearch(state:text:)` is `onSearch(text:)`. The table is under
[Group Members](#group-members).

**The notification feed keeps v5's surface.** `CometChatNotificationFeed`'s fluent setters —
`set(onItemClick:)`, `set(onActionClick:)`, `set(onError:)`, the two request builders,
`set(showFilterChips:)`, `set(showBackButton:)`, `set(cardThemeMode:)`, `set(title:)` — and its list
methods are unchanged, and `NotificationFeedStyle` keeps its field names. Its view model is now
`NotificationFeedStore`, shared with the SwiftUI toolkit. What behaves differently:
a refresh does not refetch the categories, the screen does not refresh on reconnect, the "All"
badge's first count arrives after 30 seconds, and the error state has a Retry button. See
[Notification Feed](https://www.cometchat.com/docs/ui-kit/ios/v6/notification-feed.md).

**The message list, composer and thread header** keep v5's names, with these changes:

* **Templates without a data source.** `CometChatMessageTemplate` and `CometChatMessageBubble`
  keep their names, but the list holds its own templates — `set(templates:)` — with no
  `DataSource` chain to extend.
* **Threads by message.** `messageList.set(user:parentMessage:)` / `set(group:parentMessage:)`
  replace `set(parentMessageId:)`, which still works but is deprecated.
* **Mark as unread** is off by default; turn it on with `showMarkAsUnreadOption = true`.
* **Composer formatters append.** `set(textFormatter:)` and `set(attachmentOptions:)` add to the
  defaults; v5 replaced them. Rich text is configured with `set(richTextConfiguration:)`.
* **`CometChatThreadedMessageHeader` is `CometChatThreadHeader`.** Its follow bell is shown by
  default; hide it with `hideThreadSubscriptionButton` when your bar has one.

See [Message List](https://www.cometchat.com/docs/ui-kit/ios/v6/message-list.md),
[Message Composer](https://www.cometchat.com/docs/ui-kit/ios/v6/message-composer.md) and
[Thread Header](https://www.cometchat.com/docs/ui-kit/ios/v6/thread-header.md) for the details.

## 6. Sending messages

v5's call sites compile unchanged: `CometChatUIKit.sendTextMessage(message:)`,
`sendMediaMessage(message:)` and `sendCustomMessage(message:)` are module-level functions of
`CometChatUIKit`. They now take an optional `completion`:

> [tab] SwiftUI
>
> ```swift theme={null}
> let message = TextMessage(receiverUid: "UID", text: "Hello", receiverType: .user)
> try await CometChatSession.sendTextMessage(message)
> ```

> [tab] UIKit
>
> ```swift theme={null}
> let message = TextMessage(receiverUid: "UID", text: "Hello", receiverType: .user)
> CometChatUIKit.sendTextMessage(message: message) { result in
>     if case .failure(let error) = result { print(error.message) }
> }
> ```

`CometChatSession.sendTextMessage(_:)` is the `async` form, in either toolkit. Both announce the
message on the event bus as v5's did.

## 7. Component by component

What a v5 app will notice on each UIKit component. The conversation list, the message header,
the message list, the composer and the notification feed are covered in
[section 5](#5-what-changed).

### Users

Much is as in v5: the fluent setters, the slot signatures, the 50 style names and the three
static styles; `onSelectedItemProceed` on the tick; the keyword a search leaves on your list
builder; the next page loading each time the screen appears; and a block or unblock
announced on `CometChatUserEvents` updating the row. What a v5 app will notice:

| v5 | v6 |
| - | - |
| `viewModel: UsersViewModel` | `usersStore: UsersStore` |
| `UsersStyle` (a struct), `AvatarStyle`, `StatusIndicatorStyle` | `UsersStyle`, `AvatarStyle`, `StatusIndicatorStyle` (classes) — the same property names |
| `onSelection` fired on every select and deselect | It fires on the tick, with the whole selection — use `set(onSelectionChange:)` for every change |
| The tick cleared the selection | The tick keeps the selection and the mode; the cross clears the selection and keeps the mode |
| A second tap deselected in single selection | It keeps the row selected |
| Changing `selectionMode` deselected everything | The selection is kept |
| The selection survived leaving the screen | Leaving the screen clears it |
| `set(selectionLimit:)` / `selectionLimit` | removed — a selection has no limit |
| `onSelection` and `onSelectedItemProceed` were public properties | Set them with `set(onSelection:)` / `set(onSelectedItemProceed:)` |
| `selectedCellCount`, `updateSelectedCellCount(isSelected:)`, `manageSelectionState(for:in:at:)` | removed — `updateNavigationBarTitleWithCount(_:)` receives the count |
| The search field was hidden by default | It is shown by default |
| A search ran 0.2 s after the last keystroke and showed one page | 300 ms; the results page as you scroll |
| Search results were one flat list, without headers | They keep their letter headers |
| Clearing the search restored the loaded list | It fetches the first page again, with the shimmer |
| `set(searchRequestBuilder:)` replaced the list's builder | It is a second builder, used only while searching |
| `set(searchKeyword:)` was applied when the view loaded | It searches at once |
| `onSearch(state:text:)` | `onSearch(text:)` |
| A user who came online was updated in place | The row moves to the top, with its letter's header repeated there |
| Presence was missed while another screen covered the list | The list keeps listening while it exists |
| A reconnect loaded the next page | It clears the rows and loads the first page |
| Pull to refresh kept the rows until a non-empty page arrived | The rows are cleared first; an empty answer shows the empty state |
| `onError` was called for every failure; the error view only with no rows | Unchanged with no rows; a later page or a search that fails with rows on screen is silent — no `onError` |
| No Retry on the error screen | A Retry button, styled by `retryButton…`; it asks for the next page |
| The list ended on a page shorter than the limit | It ends on an empty page — one more request |
| `onLoad` and `onEmpty` were called on every reload | They are called when the list changes into that state, and each time the screen appears |
| A 20-row loading shimmer | 30 rows |
| `set(listItemView:)` sat inside the cell, and taps still worked | The row gets no tap, long press, selection or swipe |
| Options were swipe actions | They are also the row's long-press menu; `onItemLongClick` replaces the menu |
| An option's `onClick` received the section's index | It receives the row's |
| Swipe options while searching read the unfiltered list | They act on the row you swiped |
| `add(user:)` on an empty list crashed | It inserts at the top, behind the empty state |
| `remove(user:)` could leave an empty section | The empty state shows when the last row goes |
| `init(coder:)` was a `fatalError` | Storyboards work |
| `onDidSelect`, `setupViewModel()`, `titleAlignment` | removed |
| `emptyStateImage`, `emptyStateTitleText`, `errorStateImage` … on `CometChatListBase` | removed — use `set(emptyView:)` / `set(errorView:)` |
| `heightForHeaderInSection` was `public` | It is `open` |

New: visibility setters (`setSearchBoxVisibility(_:)` and the rest),
`set(onSelectionChange:)`, `selectUser(_:mode:)`, `refreshUsers()`, `set(onBack:)` on the
Kit's own back button, `configureOptions` / `configureMenu`, and Liquid Glass on iOS 26.

### Groups

Much is as in v5: a tap joins a public group, `onSelection` fires on every toggle and
`onSelectedItemProceed` on the tick, a second tap deselects in single selection, a search is
a second one-page list, pull-to-refresh and a reconnect reload the first page, and one
member reads "1 Member". What a v5 app will notice:

| v5 | v6 |
| - | - |
| `viewModel` | `groupsStore` |
| `menus` | `setOverflowMenu(_:)` |
| `onDidSelect` | removed — use `set(onItemClick:)` |
| `joinPasswordProtectedGroup` was called for a password group | removed — the group comes to `onItemClick`; check `hasJoined` and call `groupsStore.join(_:password:)` |
| A banned user's failed join raised a "Can't join group" alert (`showBannedUserAlert()`) | A failed join calls `onError` and shows nothing |
| `selectionLimit` | removed — a selection has no limit |
| The search field was hidden by default | It is shown by default |
| A search ran 0.2 s after the last keystroke | 0.6 s |
| A failed page left loaded rows on screen | The error state takes their place; Retry reloads the first page |
| Removing the last group showed the empty state | The list is left blank |
| A 20-row loading shimmer | 30 rows |
| The list reloaded each time the screen appeared | It does not — pull to refresh, or call `refreshList()` |
| A group you were banned from was removed | Its row stays, updated |
| In selection mode a tap only selected | It also calls `onItemClick` when one is set |
| The tick, and the cross, cleared the selection and ended selection mode | The tick keeps both; the cross clears the selection and keeps the mode |
| No Retry on the error screen | A Retry button, styled by `retryButton…` |
| Options were swipe actions | They are also the row's long-press menu |
| A refresh replaced your `groupsRequestBuilder` with the default one | Your builder is kept |
| A search left its keyword on your list builder | The keyword is taken off after the search |
| A tap on a joined group announced a member-joined event | Only a join announces one |

The last three are v5 defects that v6 does not copy. Everything else — the fluent setters,
the 55 style properties, `hideGroupType`, the override points — keeps its v5 name.

### Group Members

Much is as in v5: who may kick and change a scope, localised scope names, the request
builders shaping the request from the first page, Cancel or the back button shown, a failed
page leaving a loaded list alone, and a click handler taking a tap away from selection. What
a v5 app will notice:

| v5 | v6 |
| - | - |
| `viewModel` | `groupMembersStore` |
| `onSearch(state:text:)` | `onSearch(text:)` |
| A moderator could ban participants | A moderator cannot ban |
| Your scope came from the group's own `scope` | It comes from your own row; until that row is loaded no actions are offered |
| The scope sheet listed the other scopes, with nothing selected | It lists all three with the current one selected; the ones you may not give are disabled |
| Save did nothing until a scope was picked, then showed a spinner | Save always sends, and the sheet closes before the request |
| Kick and Ban asked in an action sheet: "Kick Alice", **Yes** / **Cancel** | An alert: "Kick Alice ?", "Are You sure you want to kick Alice?", **Yes** / **No** |
| A failed kick, ban or scope change was reported through `onError` | It is also shown as a snackbar |
| The search field was hidden by default | It is shown by default |
| A search ran 0.2 s after the last keystroke | 0.6 s |
| A member who joined was added at the end | They are added at the top |
| An unbanned user was not listed | One unbanned through the Kit is listed at the top, as a participant |
| The screen dismissed itself when you were banned | It stays and shows a snackbar |
| A reconnect fetched the next page | It reloads what is on screen — the search, or the first page |
| A blocked member who was online showed the presence dot | No dot for a member you blocked or who blocked you |
| `set(trailView:)` replaced the scope chip | The view sits beside the chip |
| A **Done** button, with no count and no discard | A selection bar: the count, a discard and a tick |
| `onSelection` fired on every change | It fires from the tick, as `onSelectedItemProceed` does |
| In single selection a second tap kept the member selected | It deselects |
| — | `isFurtherSelectionEnabled` |
| Options were swipe actions | They are also the row's long-press menu |
| The presence dot did not update while the list was open | It updates live |
| — | `set(excludeOwner:)` hides the owner's row |

Everything else — the fluent setters, the 43 style properties, the three `hide…Option`
flags, `hideUserStatus`, `onSelectedItemProceed`, the list operations (`add`, `update`,
`insert`, `remove`, `clearList`, `size`) and the override points — keeps its v5 name.

### Thread Header

| v5 | v6 |
| - | - |
| `CometChatThreadedMessageHeader` | `CometChatThreadHeader` — no alias |
| `hideThreadSubscriptionButton` default `true` | default `false` |
| `viewModel` | `store`, `set(store:)` |
| `style.cornerRadius: CometChatCornerStyle?` | `CGFloat` |
| the sound properties, `set(datePattern:)` | removed — they did nothing |
| "0 replies", "1 reply" | "0 Replies", "1 Reply" |
| the bell disabled while a toggle runs | not disabled; a quick second tap does nothing |
| a tap on the header dismissed the keyboard | removed |
| the count included your send while in progress | your reply counts once the server accepts it |

### Pinned Messages

v5's panel had 26 setters. v6 keeps the conversation, `set(onMessageClicked:)`, `set(textFormatters:)`, `set(onBack:)` — plus
`style`, `set(onError:)` and the three state views. Each row is now the message list's
bubble, and the long-press menu, the swipe and pull to refresh are new.

### Saved Messages

| v5 | v6 |
| - | - |
| `viewModel: SavedMessagesViewModel` | `viewModel: SavedMessagesStore` — `messages` are values; `sdkMessage(for:)` gives the SDK object |
| `set(requestBuilder:)` | removed — the request is fixed |
| `set(subtitle:)`, `set(listItemView:)`, `set(titleView:)`, `set(leadingView:)`, `set(trailingView:)` | removed — subclass the cell |
| `dateStyle`, `avatarStyle` | `style.dateColor` / `dateFont`, `style.avatarBackgroundColor` / `avatarTextColor` |
| the row's time is the save time; sorted by it | the send time; the server's order |
| a failed unsave shows a toast and calls `onError` | silent; the row comes back |
| pull-to-refresh, refresh on reconnect | none |
| a message deleted elsewhere disappears | it stays, reading "This message was deleted" |

### Reaction List

| v5 | v6 |
| - | - |
| opens on the long-pressed emoji | opens on All (`set(defaultReaction:)` still works) |
| a tab tap shows that emoji's people | the underline moves; the rows change at the end of the list |
| my row shows my name | "You" |
| `set(onClick:)` replaced the removal | additive |
| removal optimistic, restored on failure | after the SDK succeeds; silent on failure |
| `set(listItemStyle: ListItemStyle)` | `set(listItemStyle: ReactionListItemStyle)` |
| `style.cornerRadius: CometChatCornerStyle?` | `CGFloat` |
| the sheet dismissed itself when empty | dismiss in `set(onEmpty:)` |

### Emoji Keyboard

| v5 | v6 |
| - | - |
| `set(onCancel:)`, `hide(headerView:)` | removed — the title / Cancel bar they controlled never appeared |
| `style.set(…)` setters | properties |
| the menu's "+" showed the keyboard inside the menu | the menu closes and the keyboard opens in a 400 pt sheet |
| a pick toggled your reaction | a pick adds it |
| the symbols tab showed the animals icon | the symbols icon |
| `PanModalPresentable` | present with `UISheetPresentationController` |

### Call Buttons

`set(outgoingCallConfiguration:)`, `set(callSettingsBuilder:)` and `set(controller:)` are
gone — they configured v5's call screens. `conferenceCallButton` is gone; v5 never used it.
The style is now `CallButtonStyle`, one style per button.

### Call Logs

| v5 | v6 |
| - | - |
| rows and callbacks typed `Any` | `ChatCallLog`; `callLogsStore.sdkCallLog(for:)` gives the Calls SDK object |
| `viewModel` | `callLogsStore: CallLogsStore` |
| `set(callRequestBuilder:)` with the SDK's builder | the same name, with a `CallLogsQuery` |
| refetched on every `viewWillAppear` | refreshes on pull-to-refresh, a call ending and reconnect |
| the missed icon for unanswered, busy, cancelled and rejected calls in either direction | a narrower rule — see [Call Logs](https://www.cometchat.com/docs/ui-kit/ios/v6/call-logs.md) |
| a group row's call-back button did nothing | hidden unless `set(onCallButtonClicked:)` is set |
| the in-app incoming-call banner | none — incoming calls ring on CallKit (see [Call Features](https://www.cometchat.com/docs/ui-kit/ios/v6/call-features.md)) |

### Call Log Details

v5's Kit had no details screen: its sample app built one (`CallLogDetailsVC`). v6 ships it in
the Kit with the same layout, as `CometChatCallLogDetails(callLog:)`. Its tabs are internal.

### Outgoing Call

| v5 | v6 |
| - | - |
| a ring-back tone; `disable(soundForCalls:)`, `set(customSoundForCalls:)` | no tone in this release — both setters are deprecated and do nothing |

### Ongoing Call

| v5 | v6 |
| - | - |
| `set(sessionId:)`, `set(callSettingsBuilder:)`, `setOnCallEnded` | the same names; the join goes through the Kit's `CallCoordinator` |
| — | a failed join shows "Call failed", reaches `onError` and dismisses |

### Media Viewer

| v5 | v6 |
| - | - |
| `CometChatMediaViewer(mediaItems:startIndex:)` | unchanged, plus `init(urls:mimeTypes:fileNames:startIndex:)` |
| videos in the same viewer | `CometChatVideoViewer` |

## 8. If you meet unfamiliar names

`hideBackIcon`, `trailingView`, `dateTimeFormatter` belong to the **SwiftUI** toolkit.
The UIKit equivalents are `hideBackButton`, `trailView`, `datePattern`. Each toolkit has its
own names — see the [Overview](https://www.cometchat.com/docs/ui-kit/ios/v6/overview.md#the-two-toolkits-use-different-names-on-purpose).

Both toolkits also take `dateFormat`, a `DateFormatter` that wins over either of those.

> [!NOTE]
>
> v5 and v6 are different products, not a forced upgrade. v5 remains available; check its
> support horizon before committing to a migration date.


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