Skip to main content

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

Before you start: two prerequisites

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.
v6 requires iOS 18. v5 supports older versions; v6 does not.

1. Swap the dependency

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.
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:
Errors are a CometChatError with the SDK’s code and message. See Methods.

3. Renamed types

v6 exposes its own value types alongside CometChatSDK, so anything that would have been ambiguous is prefixed: 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

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.

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. 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. 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. 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. 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. 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. 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. 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, Message Composer and Thread Header 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:
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.

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: 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: 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: 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

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

Reaction List

Emoji Keyboard

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

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

Ongoing Call

Media Viewer

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. Both toolkits also take dateFormat, a DateFormatter that wins over either of those.
v5 and v6 are different products, not a forced upgrade. v5 remains available; check its support horizon before committing to a migration date.