Alphabetical directory of the users in your app, with sticky letter headers, live presence, live search, filters, selection and item callbacks.
CometChatUsers lists the users in your app, grouped under sticky letter headers. Each row
shows the user’s avatar with a presence dot and their name. The list paginates as you
scroll, searches the server as you type in its search field, and moves a user who comes
online to the top.
Where It Fits
CometChatUsers is the directory: the screen a user opens to start a new conversation,
or the picker an “add members” flow embeds.
CometChatUsers ← you are here │ onItemClick(user) ▼ your message screen
Both toolkits read from the same store, including the letter grouping and the selection,
so the SwiftUI and UIKit lists can never disagree about what to show.
Quick Start
SwiftUI
UIKit
import CometChatSwiftUIstruct DirectoryScreen: View { var body: some View { CometChatUsers( onItemClick: { user in openChat(with: user) } ) }}
That is a working directory: it fetches the first page when it appears, paginates as you
scroll and keeps presence live. onItemClick hands you a CometChatSDK.User.The list draws a system navigation bar with a large “Users” title, so it brings its own
NavigationStack. If your screen already has one, pass embedsNavigationStack: false.
The search field is in the bar and shown by default; pass hideSearchBox: true to leave it
out, or hideToolbar: true to hide the bar and the field with it.
CometChatUsers is a UIViewController. That is a working directory: it fetches the first
page when it appears, paginates as you scroll and keeps presence live.The screen uses large titles, so present it in a UINavigationController. The search field
is in the navigation item and shown by default; setSearchBoxVisibility(false) takes it out.
The title is “Users”; set(title:) changes it.Or observe it with a delegate, which is also how Objective-C uses it:
Rows are 64 pt high with a 40-pt avatar, the name in heading4Medium, and a 14-pt green
presence dot at the avatar’s bottom-trailing corner, ringed in the list’s background. The
dot shows only for a user who is online and where neither of you has blocked the other.
There are no separators unless you ask for them.Users are grouped by the first letter of their name, uppercased; a name that does not start
with a letter goes under #. The headers — heading4Medium in the highlight colour, 20 pt
in — stay pinned as the list scrolls, and stay on while you search. The groups follow the
server’s order rather than re-sorting, so a letter can appear twice: a user who comes
online moves to the top and gets their letter’s header there.Loading is a 30-row shimmer. The empty state reads “No Users Available” with “Add contacts
to start conversations and see them listed here.”; in UIKit it also shows a person glyph. The
error state reads “Oops!” with “Something went wrong. Please try again.” and a Retry
button.
Filtering Users
Two builders: one for the list, one used while a search is active.
SwiftUI
UIKit
@State private var friends = UsersRequest.UsersRequestBuilder(limit: 30).friendsOnly(true)@State private var everyone = UsersRequest.UsersRequestBuilder(limit: 30)CometChatUsers( usersRequestBuilder: friends, searchRequestBuilder: everyone // search every user, not only friends)
The list keeps the instance you hand it, so hold it in a @State or a property rather
than building a new one in body. The first page builds the request and every later page
continues it. Handing the list a different instance after it has loaded applies from the
next page on: the rows already loaded stay and nothing is refetched — call
store.refreshList() to start over.
set(userRequestBuilder:) does the same as the initialiser. The list keeps the
instance: the first page builds the request and every later page continues it. Set after
the list has loaded, a builder applies from the next page on — the rows already loaded stay
and nothing is refetched; call refreshUsers() to start over.
With no search builder set, a search writes its keyword into your list builder and it
stays there: clearing the field, pull to refresh and a reconnect then load the list
filtered by the last keyword. Set a separate search builder to keep your list builder
clean.
Filter Recipes
Goal
Builder
Friends only
.friendsOnly(true)
Online users only
.set(status: .online)
Hide users you blocked
.hideBlockedUsers(true)
By role
.set(roles: ["moderator"])
By tag
.set(tags: ["vip"])
Specific users
.set(UIDs: ["alice", "bob"])
Larger pages
.set(limit: 50)
With no builder the list asks for 30 users a page and nothing else.
Search
The search runs 300 ms after the last keystroke. It asks the server afresh, replaces the
list with the results — still under their letter headers — and pages through them as you
scroll. A keystroke while a search is waiting or in flight cancels it, and its answer is
dropped. A search that finds nobody shows the empty state; one that fails keeps the rows
that were showing.Clearing the field fetches the first page of the list again at once: the rows are cleared
and the shimmer shows until it answers.
SwiftUI
UIKit
searchKeyword puts a keyword in the field and searches for it, when the list first
appears and whenever the value changes. searchText binds the field’s text if you want to
own it.
set(searchKeyword:) puts a keyword in the field and searches for it.
Actions and Events
Callback Methods
SwiftUI
UIKit
Prop
Signature
When
onItemClick
(User) -> Void
a row is tapped outside selection mode
onItemLongClick
(User) -> Void
a row is long-pressed
onSelection
([User]) -> Void
the selection bar’s tick is tapped
onSelectionChange
([User]) -> Void
the selection changes — and each time the list appears, with its current value
onOptionSelected
(User, MenuOption) -> Void
a row option is chosen
onSearchTextChange
(String) -> Void
the search field’s text changes
onBackPress
() -> Void
the back button is tapped; nil dismisses the screen
onLoad
([User]) -> Void
the list starts showing rows
onEmpty
() -> Void
the list becomes empty
onError
(CometChatError) -> Void
the first page, a search or a refresh fails with nothing on screen
Setter
Signature
When
set(onItemClick:)
(User, IndexPath?) -> Void
a row is tapped outside selection mode
set(onItemLongClick:)
(User, IndexPath) -> Void
a row is long-pressed
set(onSelection:)
([User]) -> Void
the selection bar’s tick is tapped
set(onSelectedItemProceed:)
([User]) -> Void
the same tick
set(onSelectionChange:)
([User]) -> Void
the selection changes — and each time the screen appears, with its current value
set(onLoad:)
([[User]]) -> Void
the list starts showing rows; the users come grouped by letter section
set(onEmpty:)
() -> Void
the list becomes empty
set(onError:)
(CometChatException) -> Void
the first page, a search or a refresh fails with nothing on screen
set(onBack:)
() -> Void
the back button is tapped
Each is also a CometChatUsersDelegate method, usable from Objective-C — except
onSelectedItemProceed, which has none; onLoad(users:) hands the delegate a flat list and
onError(error:) an NSError. When both a closure and the delegate are set, both are
called.The back button is hidden by default; shown, a tap calls onBack, and pops the screen only
when no handler is set.
Setting onItemLongClick — as a closure or, in UIKit, a delegate method — replaces the
options menu: a long press calls it instead. The swipe actions stay.
onLoad, onEmpty and onError are called when the list changes into that state,
not for every page — and once more each time the list appears, with the state it is in.A failure with no rows on screen shows the error state and calls onError. A later page
that fails is silent: the rows stay, onError is not called, and scrolling to the end
again asks again. Retry asks for the next page.
Global Events
The list consumes two Kit events and emits none. When your own screen blocks or unblocks a
user, announce it and the list updates that row in place.
CometChatUserEvents.ccUserUnblocked(user:) is the other, and
CometChatUserEvents.addListener(_:_:) hears them from anywhere in the Kit.
Everything else the list does is reported through the callbacks above. See
Events for the whole bus.
SDK Events (Real-Time, Automatic)
No wiring required — the store listens and the list updates itself.
Event
Effect
A listed user comes online
the row is replaced and moved to the top, under its own letter header; the list does not scroll
A listed user goes offline
the row updates in place
Presence for a user either of you has blocked
ignored
Presence for a user not listed
ignored — nobody is added
A user is blocked or unblocked elsewhere in the Kit
the row updates in place; a blocked user shows no dot
Connection restored
the rows are cleared and the first page is fetched again
SwiftUI
UIKit
When the connection is lost, the connection notice shows.
The store listens for as long as the screen exists, including while another screen covers
it.
On a reconnect an active search is replaced by the list, and the field keeps its text.
Each time the list appears again it loads the next page. Pull to refresh clears the rows
and fetches the first page; with rows showing there is no shimmer, so the list is blank
until it answers, and a failed refresh shows the error state.
Functionality
SwiftUI
UIKit
Prop
Type
Default
store
UsersStore?
a new store
usersRequestBuilder
UsersRequest.UsersRequestBuilder?
30 per page
searchRequestBuilder
UsersRequest.UsersRequestBuilder?
the list builder
searchKeyword
String?
nil — sets the field and searches
searchText
Binding<String>?
internal state
style
CometChatUsersStyle
.init()
title
String?
”Users”
hideToolbar, hideTitle, hideSearchBox
Bool
false
hideBackIcon, hideSeparator
Bool
true
hideStatusIndicator, hideStickyHeader
Bool
false
hideLoadingState, hideEmptyState, hideErrorState
Bool
false
searchPlaceholderText
String?
”Search”
.cometChatSearchScopes(_:selection:)
modifier: [String], Binding<Int>
no scope buttons
selectionMode
SelectionMode
.disabled
embedsNavigationStack
Bool
true
imageSource
any ImageSource
the shared cached loader
hideTitle leaves the bar with an empty title. hideStatusIndicator also takes the
presence out of the row’s VoiceOver label.cometChatUsersHidden(_:) hides several parts at once. It takes an option set —
.toolbar, .title, .backIcon, .searchBox, .statusIndicator, .stickyHeader,
.separator, .loadingState, .emptyState, .errorState — and unions with the
hide* arguments: a subtree may hide more, never reveal less.
re-shows the current state view after you replace one
The same switches are properties: hideUserStatus, hideSectionHeader, hideSeparator,
hideSearch, hideBackButton, hideNavigationBar, hideLoadingState, hideErrorView,
disableEmptyState and prefersLargeTitles. hideBackButton and hideSeparator are
true by default; hideSearch is false. Each takes effect whenever you set it, before or
after the screen loads.
add(user:) and the store’s list operations (usersStore.addItem, removeItem,
updateItem, moveItemToTop, clearItems, batch) never change what the screen is
showing: a user added while the empty state is up stays hidden behind it, and removing
the last row with removeItem leaves a blank list. remove(user:) is the one that shows
the empty state when the last row goes.
Custom View Slots
SwiftUI
UIKit
Every slot is available as an initialiser argument and as a modifier that cascades to every
CometChatUsers below it. Supply both and the initialiser argument wins.
CometChatUsers( subtitleView: { user in AnyView(MyPresenceText(user)) }, trailingView: { user in AnyView(MyRoleLabel(user)) })
.cometChatUserLeadingView { user in MyUserAvatar(user) }
Slot
Replaces
Modifier
itemView
the whole row
.cometChatUserItemView { user, isSelected in … }
leadingView
the avatar and its presence dot
.cometChatUserLeadingView { … }
titleView
the name
.cometChatUserTitleView { … }
subtitleView
nothing — it adds a line under the name
.cometChatUserSubtitleView { … }
trailingView
nothing — it adds a trailing column
.cometChatUserTrailingView { … }
loadingView
the 30-row shimmer
.cometChatUserLoadingView { … }
emptyView
the empty state
.cometChatUserEmptyView { … }
errorView
the error state; receives retry
.cometChatUserErrorView { retry in … }
overflowMenu
nothing — the bar’s trailing item
—
Slot closures receive a ChatUser — the row’s value type (id, name, avatarURL,
isOnline, isBlockedByMe, hasBlockedMe, isBlocked).
itemView. Put your own Button in the row, and select through the store.
@State private var store = UsersStore()CometChatUsers( store: store, selectionMode: .multiple, itemView: { user, isSelected in AnyView( Button { if let raw = store.sdkUser(for: user.id) { store.select(raw, mode: .multiple) } } label: { MyUserRow(user: user, selected: isSelected) } ) })
Region slots.
.cometChatUserTitleView { user in Text(user.name).bold() }
leadingView
titleView
subtitleView
trailingView
State views.errorView receives a retry closure — call it from your button. It asks
for the next page, as the built-in Retry does.
Each slot receives the SDK User — nil on a seeded store, which has none.
let users = CometChatUsers() .set(subtitle: { user in guard let user else { return UIView() } return MyPresenceLabel(user: user) }) .set(trailingView: { user in guard let user else { return UIView() } return MyRoleLabel(user: user) })
configure(with:style:avatarStyle:statusIndicatorStyle:theme:hideUserStatus:selectionMode:isSelected:showsSeparator:)
is the cell’s override point, and it resets the slots itself: rows are updated in place,
which skips prepareForReuse().
A custom row view gets no tap, long press, selection, swipe or menu from the Kit —
the row handles its own interaction.
Menu Options
The list has no options of its own. Give it some and each row shows them twice: as
trailing swipe actions and as a long-press menu.
SwiftUI
UIKit
CometChatUsers( addOptions: { user in [MenuOption(id: "message", title: "Message", systemImage: "message")] }, onOptionSelected: { user, option in if option.id == "message" { openChat(with: user) } })
options replaces the list’s (empty) set; addOptions adds to it and is used only when
options is not set.
let users = CometChatUsers() .set(options: { user in [CometChatUserOption(id: "message", title: "Message", icon: UIImage(systemName: "message"), onClick: { user, indexPath in if let user { openChat(with: user) } })] })
set(options:) replaces the list’s (empty) set; add(options:) adds to it and is used only
when set(options:) is not. CometChatUserOption(titleColor:titleFont:iconTint:backgroundColor:onClick:)
is also available, and its onClick receives the row’s index. A full swipe never fires the
first action.
.cometChatSearchScopes(_:selection:) puts scope buttons under the search field, in the
navigation bar, as a New Chat screen switches between Users and Groups. The rows scroll under
the field and the buttons with the bar’s soft edge, and the large title stays sharp.
Parameter
Type
What it does
titles
[String]
the buttons, in order (right to left in a right-to-left language); empty shows none
selection
Binding<Int>
the selected button’s index: a tap writes it, and setting it moves the highlight. An index outside titles highlights the nearest button
The buttons show whether or not the field is being searched, and they don’t filter the
search: the list only reports the selection, and what it means is up to you. The modifier
applies to every list under it, so when your screen swaps one list for the other, the
buttons stay in the bar with the right one selected.
struct NewChatView: View { @State private var page = 0 var body: some View { NavigationStack { Group { if page == 0 { CometChatUsers(embedsNavigationStack: false) } else { CometChatGroups(embedsNavigationStack: false) } } .cometChatSearchScopes(["Users", "Groups"], selection: $page) } }}
The UIKit list has no scope buttons. Host CometChatUsers and CometChatGroups under your
own UISegmentedControl — see New Chat.
Pass your own store to share one, or a seeded one to render a fixed state with no session:
let users = CometChatUsers(usersStore: UsersStore(seeded: .populated(sections, hasMore: false)))
Advanced Methods
Selection
SwiftUI
UIKit
CometChatUsers( selectionMode: .multiple, onSelection: { users in addMembers(Set(users.compactMap(\.uid))) }, onSelectionChange: { users in log("\(users.count) selected") })
let picker = CometChatUsers() .set(selectionMode: .multiple) .set(onSelection: { users in log("\(users.count) picked") }) .set(onSelectionChange: { users in log("\(users.count) selected") })
In a selection mode a tap selects or deselects and does nothing else — onItemClick is not
called. In .multiple mode a tap toggles the row, with no limit. In .single mode a tap
replaces the selection, and a second tap on the selected row keeps it selected: a
single selection cannot be emptied by tapping.
SwiftUI
UIKit
Once something is selected the navigation bar shows the count with a cross and a tick. The
tick calls onSelection with the selected users and leaves the selection and the mode as
they are. The cross clears the selection; the mode stays on, so the next tap selects again.
The selection lives in the store, so it survives search, paging and refresh — but it is
cleared when the list leaves the screen, for example when you push a screen on top of
it.
Once something is selected the navigation bar shows a cross with the number selected beside
it, and a tick. The title stays. The tick calls onSelection and onSelectedItemProceed
with the selected users and leaves the selection and selectionMode as they are. The cross
clears the selection; the mode stays on, so the next tap selects again. Changing
selectionMode keeps the selection. It lives in the store, so it survives search, paging
and refresh — but it is cleared when the screen disappears, for example when you push a
screen on top of it.getSelectedUsers() reads the selection at any time, selectUser(_:mode:) selects by the
rules above, and clearSelection() empties it.
Store Access
SwiftUI
UIKit
@State private var store = UsersStore()CometChatUsers( store: store, overflowMenu: { AnyView(Button("Reload") { _ = store.refreshList() }) }, onItemClick: { user in openChat(with: user) })
UsersStore is the store behind the list. What it exposes:
Member
Does
init(usersRequestBuilder:searchRequestBuilder:)
a live store; the builders are kept as instances
init(seeded:selectedIDs:)
a store pinned to a state, with no session — every fetch, change and selection call is a no-op
state, isSearching, connectionNotice
what the list draws
onLoad, onEmpty, onError, onSelectionChange
the callbacks, settable on the store itself
fetchUsers()
the next page — nothing while one is in flight or once a page came back empty
refreshList()
the first page again, clearing the rows first; returns the request’s task
retry()
what Retry does: the next page
search(_:)
a search 300 ms later; nil or "" returns to the list at once
bumped when a user moves to the top or a refresh lands; the list does not act on it, your view can
The list operations — addItem, addItems, removeItem, updateItem, moveItemToTop,
clearItems, batch — and addUserToTopnever change what the screen is showing.
A user added while the empty state is up stays hidden behind it; removing the last row
with removeItem leaves a blank list. removeUser is the one that shows the empty state
when the last row goes.
usersStore is the UsersStore the screen draws — the same type the SwiftUI toolkit uses.
It exposes fetchUsers(), refreshList(), retry(), search(_:),
setUsersRequestBuilder(_:), setSearchRequestBuilder(_:), the selection
(selectedUsers, selectedIDs, select(_:mode:), setSelection(_:), clearSelection()),
the list operations, sdkUser(for:) and scrollToTopToken, which is bumped when a user
moves to the top or a refresh lands — the table does not act on it.
Subclassing
SwiftUI
UIKit
CometChatUsers is a View struct. Customise it with its slots, modifiers and style.
These override points are open: defaultSetup(), setupStyle(), styleSearchBar(),
registerCells(), fetchData(), reloadData(), showEmptyView(), showErrorView(),
showLoadingView(), onSearch(text:), onRefreshControlTriggered(), tickButtonTapped(),
crossButtonTapped(), updateNavigationBarTitleWithCount(_:) and the table view’s
data-source and delegate methods — tableView(_:heightForHeaderInSection:) included.
configureOptions(for:indexPath:) returns a row’s options, and
configureMenu(for:indexPath:) builds its long-press menu from them.
Unset properties fall through to the theme, so a style carries only what you change, and
an app-wide .cometChatTheme(_:) reaches everything a style leaves alone.
Property
Styles
backgroundColor
the screen, the pinned headers and the presence dot’s ring
draws the checkbox from parts instead of the glyphs
itemStyle.selectedBackgroundColor
a selected row’s fill
itemStyle.separatorColor / separatorHeight
the separator, shown with hideSeparator: false
emptyState…, errorState…, retryButton…
the state views and Retry
loadingStateSurfaceColor
the shimmer
On iOS 26 the navigation bar is Liquid Glass and the Kit leaves it to the system. Below
iOS 26, or with Reduce Transparency on, the bar is filled with the list’s background.
Setting navigationBarBackgroundColor fills it everywhere.
The title, the search field and the selection bar’s items belong to the system’s
navigation bar. titleColor, titleFont, the search… and toolbarSeparator…
properties and popupMenuStyle have no effect. The selection bar takes
discardSelectionIcon, submitSelectionIcon, their tints and selectionCountTextColor /
Font; strokeColor, strokeWidth and cornerRadius draw a border and rounding around
the list. The stock row has no subtitle, so itemStyle.subtitleColor / subtitleFont
style nothing either; a subtitleView styles itself.
Every UsersStyle property is optional and resolved from the theme when the screen draws.
Besides the row, header and search properties it has backIcon, backIconTint,
discardSelectionIcon, discardSelectionIconTint, submitSelectionIcon,
submitSelectionIconTint, stickyTitleBackgroundColor, separatorHeight and
shimmerColor. The six retryButton… properties style the Retry button.
listItemSubTitleTextColor and listItemSubTitleFont style nothing: the row has no
subtitle of its own.CometChatUsers.style, CometChatUsers.avatarStyle and
CometChatUsers.statusIndicatorStyle are the defaults every new instance copies:
Change a screen’s style after it has loaded and call refreshStyle() — set(style:) does
that for you.
navigationBarTintColor fills the navigation bar. Left unset, the bar is filled with the
list’s background — except on iOS 26, where the bar is Liquid Glass and the Kit leaves it
to the system.
{"docsConfig":{"theme":"aspen","$schema":"https://mintlify.com/docs.json","name":"CometChat Docs","description":"Technical documentation \u0026 Implementation guides to add In-app Messaging \u0026 Voice \u0026 Video Calling to your apps and websites in minutes.","colors":{"primary":"#6851D6","light":"#6851D6","dark":"#6851D6"},"logo":{"light":"https://mintcdn.com/cometchat-22654f5b/rnJE5Ok_8RIDEPUR/logo/light.svg?fit=max\u0026auto=format\u0026n=rnJE5Ok_8RIDEPUR\u0026q=85\u0026s=461a8ced4bf934b4f3a2770f090f2d3c","dark":"https://mintcdn.com/cometchat-22654f5b/rnJE5Ok_8RIDEPUR/logo/dark.svg?fit=max\u0026auto=format\u0026n=rnJE5Ok_8RIDEPUR\u0026q=85\u0026s=12aa48fcf137edde64a9539360548174"},"favicon":"https://mintcdn.com/cometchat-22654f5b/8ODUflBxloB1jkgP/favicon.png?fit=max\u0026auto=format\u0026n=8ODUflBxloB1jkgP\u0026q=85\u0026s=b5c68dc37f6a82e5cfb5f96746e433c8","navbar":{"links":[{"href":"https://app.cometchat.com/","label":"Dashboard"}],"primary":{"type":"button","label":"Contact Support","href":"https://help.cometchat.com/hc/en-us/requests/new"}},"footer":{"socials":{"linkedin":"https://www.linkedin.com/company/cometchat","x":"https://twitter.com/CometChat","github":"https://www.github.com/cometchat"}},"seo":{"metatags":{"charset":"UTF-8","viewport":"width=device-width, initial-scale=1.0","description":"Learn how to integrate, customize, and scale real-time chat using CometChat’s UI Kits, SDKs, and widgets across popular frameworks. Get step-by-step guides, best practices, and implementation details to build production-ready chat experiences.","language":"en"},"indexing":"all"},"errors":{"404":{"redirect":true}},"contextual":{"options":["claude","cursor","chatgpt","vscode","perplexity","mcp","copy"],"display":"header"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"cometchat-22654f5b","hasAudioNarration":false,"actualSubdomain":"cometchat-22654f5b","customDomains":["www.cometchat.com"],"gitSource":{"type":"github","owner":"cometchat","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"feedback":{"thumbs":true,"edits":true,"issues":true,"agentFeedback":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"CONTEXTUAL_FEEDBACK":{"status":"ENABLED"},"CODE_SNIPPET_FEEDBACK":{"status":"ENABLED"}},"buildId":"6b1029ef5ecbc72521bb9fa0","clientVersion":"0.0.4410","searchFilterCounts":[{"language":"default","tag":"Chat \u0026 Messaging","count":2750},{"language":"default","tag":"UI Kits","count":1414},{"language":"default","tag":"SDKs","count":948},{"language":"default","tag":"Components","count":706},{"language":"default","tag":"Android","count":503},{"language":"default","tag":"APIs","count":479},{"language":"default","tag":"iOS","count":452},{"language":"default","tag":"Flutter","count":412},{"language":"default","tag":"React Native","count":373},{"language":"default","tag":"React","count":322}]},"assistantConfig":{"enableAskAiButton":true,"enableStarterQuestions":false,"enableAskAiSearchBar":true,"deflection":{"enabled":true,"email":"help@cometchat.com","showHelpButton":true}},"basePath":"/docs","hasChatPermissions":true,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[{"filePath":"assets/feedback-support-ticket.css","content":".feedback-toolbar>div:has(#feedback-thumbs-up){justify-content:flex-start;gap:0.75rem}.feedback-toolbar>div>div:has(#feedback-thumbs-up){display:contents}.feedback-toolbar>div>div>div:has(>a[href*=\"github.com\"]),.feedback-toolbar>div>div>div:has(>#feedback-support-ticket){flex-wrap:wrap}@media (min-width: 640px){.feedback-toolbar #feedback-thumbs-down{margin-right:1.5rem}}"},{"filePath":"assets/version-selector-placement.css","content":"@media (min-width: 1024px){#sidebar-content .text-sm.relative>.pl-2{position:sticky;top:0;z-index:20;background-color:var(--color-background-light)}.dark #sidebar-content .text-sm.relative>.pl-2{background-color:var(--color-background-dark)}#sidebar-content .text-sm.relative>.pl-2::before{content:\"\";position:absolute;left:0;right:0;top:-16px;height:16px;background-color:inherit}#sidebar-content .text-sm.relative>.pl-2>button[aria-haspopup=\"menu\"]{width:195px;max-width:195px}#navbar .hidden.lg\\:flex.items-center.gap-x-2{position:absolute;top:123px;left:195px;z-index:30}}@media (max-width: 1023.98px){#mobile-nav #navigation-items{display:flex;flex-direction:column;gap:0.5rem}#mobile-nav #navigation-items>.flex.flex-col.gap-y-2.mb-6{display:contents}#mobile-nav #navigation-items>button:nth-of-type(1){order:1}#mobile-nav #navigation-items>.flex.flex-col.gap-y-2.mb-6>.flex.flex-wrap.gap-2{order:2}#mobile-nav #navigation-items>button:nth-of-type(2){order:3}#mobile-nav #navigation-items>.flex.flex-col.gap-y-2.mb-6>button{order:4}#mobile-nav #navigation-items>.mt-6{order:5}}"},{"filePath":"assets/global-fixes.css","content":".nav-dropdown-products-selector-trigger{border-radius:999px!important;border:1px solid rgba(15, 23, 42, 0.15);transition:border-color 0.2s ease, background-color 0.2s ease;width:12rem;max-width:12rem;flex:0 0 12rem;overflow:visible}@media (max-width: 1023.98px){#mobile-nav .nav-dropdown-products-selector-trigger{width:auto;max-width:none;flex:initial;border-radius:0.85rem!important}}html.dark .nav-dropdown-products-selector-trigger{border-color:rgba(226, 232, 240, 0.2)}.nav-dropdown-products-selector-trigger:hover,.nav-dropdown-products-selector-trigger[aria-expanded=\"true\"]{border-color:rgba(104, 81, 214, 0.7)}.nav-dropdown-products-selector-trigger>span{max-width:none!important;white-space:normal!important;-webkit-line-clamp:unset!important;display:inline!important}.prose :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0em;margin-bottom:0em}:not(pre)>code{padding:.125rem 0rem}#content-area #header .mt-2.text-lg p{font-size:0.875rem!important;line-height:1.375rem!important}#sidebar-content div.w-\\[78px\\].h-\\[21px\\]{width:auto!important;white-space:nowrap!important;padding:2px 6px!important}"}]}
{"page":{"pagePath":"ui-kit/ios/v6/users","slug":"/ui-kit/ios/v6/users","pageMetadata":{"title":"Users","description":"Alphabetical directory of the users in your app, with sticky letter headers, live presence, live search, filters, selection and item callbacks.","href":"/ui-kit/ios/v6/users"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Alphabetical directory of the users in your app, with sticky letter headers, live presence, live search, filters, selection and item callbacks.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,em:`em`,hr:`hr`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{Card,CardGroup,CodeBlock,Frame,Heading,Note,OptimizedImage,Tab,Table,Tabs,Warning}=_components;if(!Card)_missingMdxReference(`Card`,true);if(!CardGroup)_missingMdxReference(`CardGroup`,true);if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Frame)_missingMdxReference(`Frame`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!OptimizedImage)_missingMdxReference(`OptimizedImage`,true);if(!Tab)_missingMdxReference(`Tab`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Tabs)_missingMdxReference(`Tabs`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[_jsx(_components.code,{children:`CometChatUsers`}),` lists the users in your app, grouped under sticky letter headers. Each row\nshows the user’s avatar with a presence dot and their name. The list paginates as you\nscroll, searches the server as you type in its search field, and moves a user who comes\nonline to the top.`]}),`\n`,_jsx(Frame,{children:_jsx(OptimizedImage,{src:`https://mintcdn.com/cometchat-22654f5b/pWDsskjSUHgot30F/images/ui-kit/ios/v6/docs-overview-users.png?fit=max\u0026auto=format\u0026n=pWDsskjSUHgot30F\u0026q=85\u0026s=f4fe0355c2f273f443c7655bebf6064e`,alt:`CometChatUsers showing an alphabetical list of users with letter headers and presence dots`,\"data-og-width\":`2560`,width:`2560`,\"data-og-height\":`1520`,height:`1520`,\"data-path\":`images/ui-kit/ios/v6/docs-overview-users.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/cometchat-22654f5b/pWDsskjSUHgot30F/images/ui-kit/ios/v6/docs-overview-users.png?w=280\u0026fit=max\u0026auto=format\u0026n=pWDsskjSUHgot30F\u0026q=85\u0026s=9f8479a477c339bd9ca0ad665669df57 280w, https://mintcdn.com/cometchat-22654f5b/pWDsskjSUHgot30F/images/ui-kit/ios/v6/docs-overview-users.png?w=560\u0026fit=max\u0026auto=format\u0026n=pWDsskjSUHgot30F\u0026q=85\u0026s=53d05032eb2f9328ef977c4aed74944e 560w, https://mintcdn.com/cometchat-22654f5b/pWDsskjSUHgot30F/images/ui-kit/ios/v6/docs-overview-users.png?w=840\u0026fit=max\u0026auto=format\u0026n=pWDsskjSUHgot30F\u0026q=85\u0026s=8281fa867d06bbd1e5032cca6f896cf1 840w, https://mintcdn.com/cometchat-22654f5b/pWDsskjSUHgot30F/images/ui-kit/ios/v6/docs-overview-users.png?w=1100\u0026fit=max\u0026auto=format\u0026n=pWDsskjSUHgot30F\u0026q=85\u0026s=fb13fd560acbd4995add0ab5a6b8132e 1100w, https://mintcdn.com/cometchat-22654f5b/pWDsskjSUHgot30F/images/ui-kit/ios/v6/docs-overview-users.png?w=1650\u0026fit=max\u0026auto=format\u0026n=pWDsskjSUHgot30F\u0026q=85\u0026s=328616bb63e2c7f258594c230ddf9531 1650w, https://mintcdn.com/cometchat-22654f5b/pWDsskjSUHgot30F/images/ui-kit/ios/v6/docs-overview-users.png?w=2500\u0026fit=max\u0026auto=format\u0026n=pWDsskjSUHgot30F\u0026q=85\u0026s=69f8a22447237987b4f648f4f8260719 2500w`})}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`where-it-fits`,children:`Where It Fits`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`CometChatUsers`}),` is the directory: the screen a user opens to start a new conversation,\nor the picker an “add members” flow embeds.`]}),`\n`,_jsx(CodeBlock,{numberOfLines:`5`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`5`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`CometChatUsers ← you are here`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` │ onItemClick(user)`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` ▼`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` your message screen`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsxs(_components.p,{children:[`Both toolkits read from the same store, including the letter grouping and the selection,\nso the SwiftUI and UIKit lists can never disagree about `,_jsx(_components.em,{children:`what`}),` to show.`]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`quick-start`,children:`Quick Start`}),`\n`,_jsxs(Tabs,{children:[_jsxs(Tab,{title:`SwiftUI`,id:`swiftui`,children:[_jsx(CodeBlock,{filename:``,numberOfLines:`9`,language:`swift`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`swift`,children:_jsxs(_components.code,{language:`swift`,numberOfLines:`9`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` CometChatSwiftUI`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`struct`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` DirectoryScreen`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`View `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` var`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` body: `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`some`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` View {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` CometChatUsers`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` onItemClick`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { user `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`in`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` openChat`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`with`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: user) }`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` )`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsxs(_components.p,{children:[`That is a working directory: it fetches the first page when it appears, paginates as you\nscroll and keeps presence live. `,_jsx(_components.code,{children:`onItemClick`}),` hands you a `,_jsx(_components.code,{children:`CometChatSDK.User`}),`.`]}),_jsxs(_components.p,{children:[`The list draws a system navigation bar with a large “Users” title, so it brings its own\n`,_jsx(_components.code,{children:`NavigationStack`}),`. If your screen already has one, pass `,_jsx(_components.code,{children:`embedsNavigationStack: false`}),`.\nThe search field is in the bar and shown by default; pass `,_jsx(_components.code,{children:`hideSearchBox: true`}),` to leave it\nout, or `,_jsx(_components.code,{children:`hideToolbar: true`}),` to hide the bar and the field with it.`]})]}),_jsxs(Tab,{title:`UIKit`,id:`uikit`,children:[_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`swift`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`swift`,children:_jsxs(_components.code,{language:`swift`,numberOfLines:`5`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` CometChatUIKit`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`let`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` users `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` CometChatUsers`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`()`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` .`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:`set`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`onItemClick`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { user, indexPath `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`in`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` openChat`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`with`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: user) })`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`navigationController`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`?`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`pushViewController`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(users, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`animated`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`]})})}),_jsxs(_components.p,{children:[_jsx(_components.code,{children:`CometChatUsers`}),` is a `,_jsx(_components.code,{children:`UIViewController`}),`. That is a working directory: it fetches the first\npage when it appears, paginates as you scroll and keeps presence live.`]}),_jsxs(_components.p,{children:[`The screen uses large titles, so present it in a `,_jsx(_components.code,{children:`UINavigationController`}),`. The search field\nis in the navigation item and shown by default; `,_jsx(_components.code,{children:`setSearchBoxVisibility(false)`}),` takes it out.\nThe title is “Users”; `,_jsx(_components.code,{children:`set(title:)`}),` changes it.`]}),_jsx(_components.p,{children:`Or observe it with a delegate, which is also how Objective-C uses it:`}),_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`swift`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`swift`,children:_jsxs(_components.code,{language:`swift`,numberOfLines:`5`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`extension`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` UsersCoordinator`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`CometChatUsersDelegate `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` func`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` onItemClick`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`user`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: User, `}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`indexPath`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: IndexPath) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` openChat`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`with`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: user)`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]})]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`what-it-looks-like`,children:`What It Looks Like`}),`\n`,_jsxs(_components.p,{children:[`Rows are 64 pt high with a 40-pt avatar, the name in `,_jsx(_components.code,{children:`heading4Medium`}),`, and a 14-pt green\npresence dot at the avatar’s bottom-trailing corner, ringed in the list’s background. The\ndot shows only for a user who is online and where neither of you has blocked the other.\nThere are no separators unless you ask for them.`]}),`\n`,_jsxs(_components.p,{children:[`Users are grouped by the first letter of their name, uppercased; a name that does not start\nwith a letter goes under `,_jsx(_components.code,{children:`#`}),`. The headers — `,_jsx(_components.code,{children:`heading4Medium`}),` in the highlight colour, 20 pt\nin — stay pinned as the list scrolls, and stay on while you search. The groups follow the\nserver’s order rather than re-sorting, so a letter can appear twice: a user who comes\nonline moves to the top and gets their letter’s header there.`]}),`\n`,_jsxs(_components.p,{children:[`Loading is a 30-row shimmer. The empty state reads “No Users Available” with “Add contacts\nto start conversations and see them listed here.”; in UIKit it also shows a person glyph. The\nerror state reads “Oops!” with “Something went wrong. Please try again.” and a `,_jsx(_components.strong,{children:`Retry`}),`\nbutton.`]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`filtering-users`,children:`Filtering Users`}),`\n`,_jsx(_components.p,{children:`Two builders: one for the list, one used while a search is active.`}),`\n`,_jsxs(Tabs,{children:[_jsxs(Tab,{title:`SwiftUI`,id:`swiftui-2`,children:[_jsx(CodeBlock,{filename:``,numberOfLines:`7`,language:`swift`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`swift`,children:_jsxs(_components.code,{language:`swift`,numberOfLines:`7`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`@State`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` private`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` var`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` friends `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` UsersRequest.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`UsersRequestBuilder`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`limit`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`30`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`).`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`friendsOnly`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`@State`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` private`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` var`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` everyone `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` UsersRequest.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`UsersRequestBuilder`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`limit`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`30`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`CometChatUsers`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` usersRequestBuilder`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: friends,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` searchRequestBuilder`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: everyone `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// search every user, not only friends`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`]})})}),_jsxs(_components.p,{children:[`The list keeps `,_jsx(_components.strong,{children:`the instance`}),` you hand it, so hold it in a `,_jsx(_components.code,{children:`@State`}),` or a property rather\nthan building a new one in `,_jsx(_components.code,{children:`body`}),`. The first page builds the request and every later page\ncontinues it. Handing the list a different instance after it has loaded applies from the\nnext page on: the rows already loaded stay and nothing is refetched — call\n`,_jsx(_components.code,{children:`store.refreshList()`}),` to start over.`]})]}),_jsxs(Tab,{title:`UIKit`,id:`uikit-2`,children:[_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`swift`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`swift`,children:_jsxs(_components.code,{language:`swift`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`let`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` users `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` CometChatUsers`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`usersRequestBuilder`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: UsersRequest.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`UsersRequestBuilder`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`limit`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`30`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`).`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`friendsOnly`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`))`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` .`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:`set`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`searchRequestBuilder`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: UsersRequest.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`UsersRequestBuilder`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`limit`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`30`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)) `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// search everyone`})]}),`\n`]})})}),_jsxs(_components.p,{children:[_jsx(_components.code,{children:`set(userRequestBuilder:)`}),` does the same as the initialiser. The list keeps `,_jsx(_components.strong,{children:`the\ninstance`}),`: the first page builds the request and every later page continues it. Set after\nthe list has loaded, a builder applies from the next page on — the rows already loaded stay\nand nothing is refetched; call `,_jsx(_components.code,{children:`refreshUsers()`}),` to start over.`]})]})]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`With no search builder set, a search writes its keyword into your list builder and it\n`,_jsx(_components.strong,{children:`stays there`}),`: clearing the field, pull to refresh and a reconnect then load the list\nfiltered by the last keyword. Set a separate search builder to keep your list builder\nclean.`]})}),`\n`,_jsx(Heading,{level:`3`,id:`filter-recipes`,children:`Filter Recipes`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Goal`}),_jsx(_components.th,{children:`Builder`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Friends only`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`.friendsOnly(true)`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Online users only`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`.set(status: .online)`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Hide users you blocked`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`.hideBlockedUsers(true)`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`By role`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`.set(roles: [\"moderator\"])`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`By tag`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`.set(tags: [\"vip\"])`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Specific users`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`.set(UIDs: [\"alice\", \"bob\"])`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Larger pages`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`.set(limit: 50)`})})]})]})]}),`\n`,_jsx(_components.p,{children:`With no builder the list asks for 30 users a page and nothing else.`}),`\n`,_jsx(Heading,{level:`3`,id:`search`,children:`Search`}),`\n`,_jsx(_components.p,{children:`The search runs 300 ms after the last keystroke. It asks the server afresh, replaces the\nlist with the results — still under their letter headers — and pages through them as you\nscroll. A keystroke while a search is waiting or in flight cancels it, and its answer is\ndropped. A search that finds nobody shows the empty state; one that fails keeps the rows\nthat were showing.`}),`\n`,_jsx(_components.p,{children:`Clearing the field fetches the first page of the list again at once: the rows are cleared\nand the shimmer shows until it answers.`}),`\n`,_jsxs(Tabs,{children:[_jsx(Tab,{title:`SwiftUI`,id:`swiftui-3`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`searchKeyword`}),` puts a keyword in the field and searches for it, when the list first\nappears and whenever the value changes. `,_jsx(_components.code,{children:`searchText`}),` binds the field’s text if you want to\nown it.`]})}),_jsx(Tab,{title:`UIKit`,id:`uikit-3`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`set(searchKeyword:)`}),` puts a keyword in the field and searches for it.`]})})]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`actions-and-events`,children:`Actions and Events`}),`\n`,_jsx(Heading,{level:`3`,id:`callback-methods`,children:`Callback Methods`}),`\n`,_jsxs(Tabs,{children:[_jsx(Tab,{title:`SwiftUI`,id:`swiftui-4`,children:_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Prop`}),_jsx(_components.th,{children:`Signature`}),_jsx(_components.th,{children:`When`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`onItemClick`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`(User) -> Void`})}),_jsx(_components.td,{children:`a row is tapped outside selection mode`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`onItemLongClick`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`(User) -> Void`})}),_jsx(_components.td,{children:`a row is long-pressed`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`onSelection`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`([User]) -> Void`})}),_jsx(_components.td,{children:`the selection bar’s tick is tapped`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`onSelectionChange`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`([User]) -> Void`})}),_jsx(_components.td,{children:`the selection changes — and each time the list appears, with its current value`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`onOptionSelected`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`(User, MenuOption) -> Void`})}),_jsx(_components.td,{children:`a row option is chosen`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`onSearchTextChange`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`(String) -> Void`})}),_jsx(_components.td,{children:`the search field’s text changes`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`onBackPress`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`() -> Void`})}),_jsxs(_components.td,{children:[`the back button is tapped; `,_jsx(_components.code,{children:`nil`}),` dismisses the screen`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`onLoad`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`([User]) -> Void`})}),_jsx(_components.td,{children:`the list starts showing rows`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`onEmpty`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`() -> Void`})}),_jsx(_components.td,{children:`the list becomes empty`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`onError`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`(CometChatError) -> Void`})}),_jsx(_components.td,{children:`the first page, a search or a refresh fails with nothing on screen`})]})]})]})}),_jsxs(Tab,{title:`UIKit`,id:`uikit-4`,children:[_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Setter`}),_jsx(_components.th,{children:`Signature`}),_jsx(_components.th,{children:`When`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`set(onItemClick:)`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`(User, IndexPath?) -> Void`})}),_jsx(_components.td,{children:`a row is tapped outside selection mode`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`set(onItemLongClick:)`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`(User, IndexPath) -> Void`})}),_jsx(_components.td,{children:`a row is long-pressed`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`set(onSelection:)`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`([User]) -> Void`})}),_jsx(_components.td,{children:`the selection bar’s tick is tapped`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`set(onSelectedItemProceed:)`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`([User]) -> Void`})}),_jsx(_components.td,{children:`the same tick`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`set(onSelectionChange:)`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`([User]) -> Void`})}),_jsx(_components.td,{children:`the selection changes — and each time the screen appears, with its current value`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`set(onLoad:)`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`([[User]]) -> Void`})}),_jsx(_components.td,{children:`the list starts showing rows; the users come grouped by letter section`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`set(onEmpty:)`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`() -> Void`})}),_jsx(_components.td,{children:`the list becomes empty`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`set(onError:)`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`(CometChatException) -> Void`})}),_jsx(_components.td,{children:`the first page, a search or a refresh fails with nothing on screen`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`set(onBack:)`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`() -> Void`})}),_jsx(_components.td,{children:`the back button is tapped`})]})]})]}),_jsxs(_components.p,{children:[`Each is also a `,_jsx(_components.code,{children:`CometChatUsersDelegate`}),` method, usable from Objective-C — except\n`,_jsx(_components.code,{children:`onSelectedItemProceed`}),`, which has none; `,_jsx(_components.code,{children:`onLoad(users:)`}),` hands the delegate a flat list and\n`,_jsx(_components.code,{children:`onError(error:)`}),` an `,_jsx(_components.code,{children:`NSError`}),`. When both a closure and the delegate are set, both are\ncalled.`]}),_jsxs(_components.p,{children:[`The back button is hidden by default; shown, a tap calls `,_jsx(_components.code,{children:`onBack`}),`, and pops the screen only\nwhen no handler is set.`]})]})]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`Setting `,_jsx(_components.code,{children:`onItemLongClick`}),` — as a closure or, in UIKit, a delegate method — `,_jsx(_components.strong,{children:`replaces`}),` the\noptions menu: a long press calls it instead. The swipe actions stay.`]})}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`onLoad`}),`, `,_jsx(_components.code,{children:`onEmpty`}),` and `,_jsx(_components.code,{children:`onError`}),` are called when the list `,_jsx(_components.strong,{children:`changes into`}),` that state,\nnot for every page — and once more each time the list appears, with the state it is in.`]}),`\n`,_jsxs(_components.p,{children:[`A failure with no rows on screen shows the error state and calls `,_jsx(_components.code,{children:`onError`}),`. `,_jsx(_components.strong,{children:`A later page\nthat fails is silent`}),`: the rows stay, `,_jsx(_components.code,{children:`onError`}),` is not called, and scrolling to the end\nagain asks again. `,_jsx(_components.strong,{children:`Retry`}),` asks for the next page.`]}),`\n`,_jsx(Heading,{level:`3`,id:`global-events`,children:`Global Events`}),`\n`,_jsx(_components.p,{children:`The list consumes two Kit events and emits none. When your own screen blocks or unblocks a\nuser, announce it and the list updates that row in place.`}),`\n`,_jsxs(Tabs,{children:[_jsxs(Tab,{title:`SwiftUI`,id:`swiftui-5`,children:[_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`swift`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`swift`,children:_jsxs(_components.code,{language:`swift`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`CometChatEvents.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`emitUserEvent`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`userBlocked`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`user`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: user))`})]}),`\n`]})})}),_jsxs(_components.p,{children:[_jsx(_components.code,{children:`.userUnblocked(user:)`}),` is the other.`]})]}),_jsxs(Tab,{title:`UIKit`,id:`uikit-5`,children:[_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`swift`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`swift`,children:_jsxs(_components.code,{language:`swift`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`CometChatUserEvents.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`ccUserBlocked`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`user`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: user)`})]}),`\n`]})})}),_jsxs(_components.p,{children:[_jsx(_components.code,{children:`CometChatUserEvents.ccUserUnblocked(user:)`}),` is the other, and\n`,_jsx(_components.code,{children:`CometChatUserEvents.addListener(_:_:)`}),` hears them from anywhere in the Kit.`]})]})]}),`\n`,_jsxs(_components.p,{children:[`Everything else the list does is reported through the callbacks above. See\n`,_jsx(_components.a,{href:`/ui-kit/ios/v6/events`,children:`Events`}),` for the whole bus.`]}),`\n`,_jsx(Heading,{level:`3`,id:`sdk-events-real-time-automatic`,children:`SDK Events (Real-Time, Automatic)`}),`\n`,_jsx(_components.p,{children:`No wiring required — the store listens and the list updates itself.`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Event`}),_jsx(_components.th,{children:`Effect`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`A listed user comes online`}),_jsxs(_components.td,{children:[`the row is replaced and `,_jsx(_components.strong,{children:`moved to the top`}),`, under its own letter header; the list does not scroll`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`A listed user goes offline`}),_jsx(_components.td,{children:`the row updates in place`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Presence for a user either of you has blocked`}),_jsx(_components.td,{children:`ignored`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Presence for a user not listed`}),_jsx(_components.td,{children:`ignored — nobody is added`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`A user is blocked or unblocked elsewhere in the Kit`}),_jsx(_components.td,{children:`the row updates in place; a blocked user shows no dot`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Connection restored`}),_jsx(_components.td,{children:`the rows are cleared and the first page is fetched again`})]})]})]}),`\n`,_jsxs(Tabs,{children:[_jsx(Tab,{title:`SwiftUI`,id:`swiftui-6`,children:_jsx(_components.p,{children:`When the connection is lost, the connection notice shows.`})}),_jsx(Tab,{title:`UIKit`,id:`uikit-6`,children:_jsx(_components.p,{children:`The store listens for as long as the screen exists, including while another screen covers\nit.`})})]}),`\n`,_jsxs(_components.p,{children:[`On a reconnect an active search is replaced by the list, and the field keeps its text.\n`,_jsx(_components.strong,{children:`Each time the list appears again it loads the next page.`}),` Pull to refresh clears the rows\nand fetches the first page; with rows showing there is no shimmer, so the list is blank\nuntil it answers, and a failed refresh shows the error state.`]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`functionality`,children:`Functionality`}),`\n`,_jsxs(Tabs,{children:[_jsxs(Tab,{title:`SwiftUI`,id:`swiftui-7`,children:[_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Prop`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Default`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`store`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`UsersStore?`})}),_jsx(_components.td,{children:`a new store`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`usersRequestBuilder`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`UsersRequest.UsersRequestBuilder?`})}),_jsx(_components.td,{children:`30 per page`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`searchRequestBuilder`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`UsersRequest.UsersRequestBuilder?`})}),_jsx(_components.td,{children:`the list builder`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`searchKeyword`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`String?`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`nil`}),` — sets the field and searches`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`searchText`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Binding\u003cString>?`})}),_jsx(_components.td,{children:`internal state`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`style`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`CometChatUsersStyle`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`.init()`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`title`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`String?`})}),_jsx(_components.td,{children:`”Users”`})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`hideToolbar`}),`, `,_jsx(_components.code,{children:`hideTitle`}),`, `,_jsx(_components.code,{children:`hideSearchBox`})]}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Bool`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`false`})})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`hideBackIcon`}),`, `,_jsx(_components.code,{children:`hideSeparator`})]}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Bool`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`true`})})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`hideStatusIndicator`}),`, `,_jsx(_components.code,{children:`hideStickyHeader`})]}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Bool`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`false`})})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`hideLoadingState`}),`, `,_jsx(_components.code,{children:`hideEmptyState`}),`, `,_jsx(_components.code,{children:`hideErrorState`})]}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Bool`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`false`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`searchPlaceholderText`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`String?`})}),_jsx(_components.td,{children:`”Search”`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`.cometChatSearchScopes(_:selection:)`})}),_jsxs(_components.td,{children:[`modifier: `,_jsx(_components.code,{children:`[String]`}),`, `,_jsx(_components.code,{children:`Binding\u003cInt>`})]}),_jsx(_components.td,{children:`no scope buttons`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`selectionMode`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`SelectionMode`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`.disabled`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`embedsNavigationStack`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Bool`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`true`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`imageSource`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`any ImageSource`})}),_jsx(_components.td,{children:`the shared cached loader`})]})]})]}),_jsxs(_components.p,{children:[_jsx(_components.code,{children:`hideTitle`}),` leaves the bar with an empty title. `,_jsx(_components.code,{children:`hideStatusIndicator`}),` also takes the\npresence out of the row’s VoiceOver label.`]}),_jsxs(_components.p,{children:[_jsx(_components.code,{children:`cometChatUsersHidden(_:)`}),` hides several parts at once. It takes an option set —\n`,_jsx(_components.code,{children:`.toolbar`}),`, `,_jsx(_components.code,{children:`.title`}),`, `,_jsx(_components.code,{children:`.backIcon`}),`, `,_jsx(_components.code,{children:`.searchBox`}),`, `,_jsx(_components.code,{children:`.statusIndicator`}),`, `,_jsx(_components.code,{children:`.stickyHeader`}),`,\n`,_jsx(_components.code,{children:`.separator`}),`, `,_jsx(_components.code,{children:`.loadingState`}),`, `,_jsx(_components.code,{children:`.emptyState`}),`, `,_jsx(_components.code,{children:`.errorState`}),` — and `,_jsx(_components.strong,{children:`unions`}),` with the\n`,_jsx(_components.code,{children:`hide*`}),` arguments: a subtree may hide more, never reveal less.`]}),_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`swift`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`swift`,children:_jsxs(_components.code,{language:`swift`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`CometChatUsers`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`().`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`cometChatUsersHidden`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`([.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`stickyHeader`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, .`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`statusIndicator`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`])`})]}),`\n`]})})}),_jsx(Frame,{caption:`.stickyHeader`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/cometchat-22654f5b/pWDsskjSUHgot30F/images/ui-kit/ios/v6/users-override-noStickyHeader.png?fit=max\u0026auto=format\u0026n=pWDsskjSUHgot30F\u0026q=85\u0026s=474ebc52d6e3fff36e6bcefb6f11aca5`,alt:`Users list without letter headers`,\"data-og-width\":`2560`,width:`2560`,\"data-og-height\":`1520`,height:`1520`,\"data-path\":`images/ui-kit/ios/v6/users-override-noStickyHeader.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/cometchat-22654f5b/pWDsskjSUHgot30F/images/ui-kit/ios/v6/users-override-noStickyHeader.png?w=280\u0026fit=max\u0026auto=format\u0026n=pWDsskjSUHgot30F\u0026q=85\u0026s=da80e83b6f3e94f3a4a84328f5376db9 280w, https://mintcdn.com/cometchat-22654f5b/pWDsskjSUHgot30F/images/ui-kit/ios/v6/users-override-noStickyHeader.png?w=560\u0026fit=max\u0026auto=format\u0026n=pWDsskjSUHgot30F\u0026q=85\u0026s=e3eb385f6a04d26affbfe236293d6bae 560w, https://mintcdn.com/cometchat-22654f5b/pWDsskjSUHgot30F/images/ui-kit/ios/v6/users-override-noStickyHeader.png?w=840\u0026fit=max\u0026auto=format\u0026n=pWDsskjSUHgot30F\u0026q=85\u0026s=f22388e04d81ba407e85077128f74508 840w, https://mintcdn.com/cometchat-22654f5b/pWDsskjSUHgot30F/images/ui-kit/ios/v6/users-override-noStickyHeader.png?w=1100\u0026fit=max\u0026auto=format\u0026n=pWDsskjSUHgot30F\u0026q=85\u0026s=83fda818063bdb680c3339e1433bf97d 1100w, https://mintcdn.com/cometchat-22654f5b/pWDsskjSUHgot30F/images/ui-kit/ios/v6/users-override-noStickyHeader.png?w=1650\u0026fit=max\u0026auto=format\u0026n=pWDsskjSUHgot30F\u0026q=85\u0026s=75d877f6567cbfdca6a889f586eda63a 1650w, https://mintcdn.com/cometchat-22654f5b/pWDsskjSUHgot30F/images/ui-kit/ios/v6/users-override-noStickyHeader.png?w=2500\u0026fit=max\u0026auto=format\u0026n=pWDsskjSUHgot30F\u0026q=85\u0026s=9e87f909bc804b872b1f2ecf8e182a1d 2500w`})}),_jsx(Frame,{caption:`.statusIndicator`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/cometchat-22654f5b/pWDsskjSUHgot30F/images/ui-kit/ios/v6/users-override-noStatus.png?fit=max\u0026auto=format\u0026n=pWDsskjSUHgot30F\u0026q=85\u0026s=7e66e207832708daf93fb7d4d1dc1135`,alt:`Users list without presence dots`,\"data-og-width\":`2560`,width:`2560`,\"data-og-height\":`1520`,height:`1520`,\"data-path\":`images/ui-kit/ios/v6/users-override-noStatus.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/cometchat-22654f5b/pWDsskjSUHgot30F/images/ui-kit/ios/v6/users-override-noStatus.png?w=280\u0026fit=max\u0026auto=format\u0026n=pWDsskjSUHgot30F\u0026q=85\u0026s=5945c4470c70025abe28ab333886ab0d 280w, https://mintcdn.com/cometchat-22654f5b/pWDsskjSUHgot30F/images/ui-kit/ios/v6/users-override-noStatus.png?w=560\u0026fit=max\u0026auto=format\u0026n=pWDsskjSUHgot30F\u0026q=85\u0026s=0ad2007860001ba56cb2ec48899e69cb 560w, https://mintcdn.com/cometchat-22654f5b/pWDsskjSUHgot30F/images/ui-kit/ios/v6/users-override-noStatus.png?w=840\u0026fit=max\u0026auto=format\u0026n=pWDsskjSUHgot30F\u0026q=85\u0026s=bc60333486837e41fb6d65a6f90928ca 840w, https://mintcdn.com/cometchat-22654f5b/pWDsskjSUHgot30F/images/ui-kit/ios/v6/users-override-noStatus.png?w=1100\u0026fit=max\u0026auto=format\u0026n=pWDsskjSUHgot30F\u0026q=85\u0026s=f7d80d008cc27dfe3fdac9b0093d2116 1100w, https://mintcdn.com/cometchat-22654f5b/pWDsskjSUHgot30F/images/ui-kit/ios/v6/users-override-noStatus.png?w=1650\u0026fit=max\u0026auto=format\u0026n=pWDsskjSUHgot30F\u0026q=85\u0026s=3c1486f097870d875f76fd3861eff067 1650w, https://mintcdn.com/cometchat-22654f5b/pWDsskjSUHgot30F/images/ui-kit/ios/v6/users-override-noStatus.png?w=2500\u0026fit=max\u0026auto=format\u0026n=pWDsskjSUHgot30F\u0026q=85\u0026s=57a7094c190754dfe7a47cebe64c710c 2500w`})})]}),_jsxs(Tab,{title:`UIKit`,id:`uikit-7`,children:[_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Method`}),_jsx(_components.th,{children:`Does`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`fetchData()`})}),_jsx(_components.td,{children:`the next page`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`refreshUsers()`})}),_jsx(_components.td,{children:`the first page again, clearing the rows first`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`set(searchKeyword:)`})}),_jsx(_components.td,{children:`puts a keyword in the field and searches`})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`getSelectedUsers()`}),`, `,_jsx(_components.code,{children:`clearSelection()`}),`, `,_jsx(_components.code,{children:`selectUser(_:mode:)`})]}),_jsx(_components.td,{children:`reads and changes the selection`})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`add(user:)`}),`, `,_jsx(_components.code,{children:`update(user:)`}),`, `,_jsx(_components.code,{children:`remove(user:)`})]}),_jsx(_components.td,{children:`adds a user at the top, updates one in place, removes one`})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`setToolbarVisibility(_:)`}),`, `,_jsx(_components.code,{children:`setSearchBoxVisibility(_:)`}),`, `,_jsx(_components.code,{children:`setBackIconVisibility(_:)`}),`, `,_jsx(_components.code,{children:`setUserStatusVisibility(_:)`}),`, `,_jsx(_components.code,{children:`setSeparatorVisibility(_:)`}),`, `,_jsx(_components.code,{children:`setStickyHeaderVisibility(_:)`}),`, `,_jsx(_components.code,{children:`setEmptyStateVisibility(_:)`}),`, `,_jsx(_components.code,{children:`setErrorStateVisibility(_:)`}),`, `,_jsx(_components.code,{children:`setLoadingStateVisibility(_:)`})]}),_jsxs(_components.td,{children:[`shows or hides a part; each has a `,_jsx(_components.code,{children:`get…`})]})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`set(hideLoadingState:)`}),`, `,_jsx(_components.code,{children:`set(hideEmptyState:)`}),`, `,_jsx(_components.code,{children:`set(hideErrorState:)`})]}),_jsx(_components.td,{children:`the same three states, the other way round`})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`setOverflowMenu(_:)`}),`, `,_jsx(_components.code,{children:`setSearchPlaceholderText(_:)`}),`, `,_jsx(_components.code,{children:`setTitleTextColor(_:)`})]}),_jsx(_components.td,{children:`the bar`})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`setSearchInputBackgroundColor(_:)`}),`, `,_jsx(_components.code,{children:`setSearchInputTextColor(_:)`}),`, `,_jsx(_components.code,{children:`setSearchInputCornerRadius(_:)`}),`, `,_jsx(_components.code,{children:`setSearchInputStrokeWidth(_:)`}),`, `,_jsx(_components.code,{children:`setSearchInputStrokeColor(_:)`})]}),_jsx(_components.td,{children:`the search field`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`refreshStyle()`})}),_jsxs(_components.td,{children:[`re-applies `,_jsx(_components.code,{children:`style`}),` after you change it`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`renderCurrentState()`})}),_jsx(_components.td,{children:`re-shows the current state view after you replace one`})]})]})]}),_jsxs(_components.p,{children:[`The same switches are properties: `,_jsx(_components.code,{children:`hideUserStatus`}),`, `,_jsx(_components.code,{children:`hideSectionHeader`}),`, `,_jsx(_components.code,{children:`hideSeparator`}),`,\n`,_jsx(_components.code,{children:`hideSearch`}),`, `,_jsx(_components.code,{children:`hideBackButton`}),`, `,_jsx(_components.code,{children:`hideNavigationBar`}),`, `,_jsx(_components.code,{children:`hideLoadingState`}),`, `,_jsx(_components.code,{children:`hideErrorView`}),`,\n`,_jsx(_components.code,{children:`disableEmptyState`}),` and `,_jsx(_components.code,{children:`prefersLargeTitles`}),`. `,_jsx(_components.code,{children:`hideBackButton`}),` and `,_jsx(_components.code,{children:`hideSeparator`}),` are\n`,_jsx(_components.code,{children:`true`}),` by default; `,_jsx(_components.code,{children:`hideSearch`}),` is `,_jsx(_components.code,{children:`false`}),`. Each takes effect whenever you set it, before or\nafter the screen loads.`]}),_jsx(Warning,{children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`add(user:)`}),` and the store’s list operations (`,_jsx(_components.code,{children:`usersStore.addItem`}),`, `,_jsx(_components.code,{children:`removeItem`}),`,\n`,_jsx(_components.code,{children:`updateItem`}),`, `,_jsx(_components.code,{children:`moveItemToTop`}),`, `,_jsx(_components.code,{children:`clearItems`}),`, `,_jsx(_components.code,{children:`batch`}),`) `,_jsx(_components.strong,{children:`never change what the screen is\nshowing`}),`: a user added while the empty state is up stays hidden behind it, and removing\nthe last row with `,_jsx(_components.code,{children:`removeItem`}),` leaves a blank list. `,_jsx(_components.code,{children:`remove(user:)`}),` is the one that shows\nthe empty state when the last row goes.`]})})]})]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`custom-view-slots`,children:`Custom View Slots`}),`\n`,_jsxs(Tabs,{children:[_jsxs(Tab,{title:`SwiftUI`,id:`swiftui-8`,children:[_jsxs(_components.p,{children:[`Every slot is available as an initialiser argument and as a modifier that cascades to every\n`,_jsx(_components.code,{children:`CometChatUsers`}),` below it. Supply both and the initialiser argument wins.`]}),_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`swift`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`swift`,children:_jsxs(_components.code,{language:`swift`,numberOfLines:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`CometChatUsers`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` subtitleView`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { user `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`in`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` AnyView`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`MyPresenceText`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(user)) },`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` trailingView`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { user `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`in`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` AnyView`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`MyRoleLabel`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(user)) }`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`]})})}),_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`swift`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`swift`,children:_jsxs(_components.code,{language:`swift`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`cometChatUserLeadingView`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { user `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`in`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` MyUserAvatar`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(user) }`})]}),`\n`]})})}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Slot`}),_jsx(_components.th,{children:`Replaces`}),_jsx(_components.th,{children:`Modifier`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`itemView`})}),_jsx(_components.td,{children:`the whole row`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`.cometChatUserItemView { user, isSelected in … }`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`leadingView`})}),_jsx(_components.td,{children:`the avatar and its presence dot`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`.cometChatUserLeadingView { … }`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`titleView`})}),_jsx(_components.td,{children:`the name`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`.cometChatUserTitleView { … }`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`subtitleView`})}),_jsx(_components.td,{children:`nothing — it adds a line under the name`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`.cometChatUserSubtitleView { … }`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`trailingView`})}),_jsx(_components.td,{children:`nothing — it adds a trailing column`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`.cometChatUserTrailingView { … }`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`loadingView`})}),_jsx(_components.td,{children:`the 30-row shimmer`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`.cometChatUserLoadingView { … }`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`emptyView`})}),_jsx(_components.td,{children:`the empty state`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`.cometChatUserEmptyView { … }`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`errorView`})}),_jsxs(_components.td,{children:[`the error state; receives `,_jsx(_components.code,{children:`retry`})]}),_jsx(_components.td,{children:_jsx(_components.code,{children:`.cometChatUserErrorView { retry in … }`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`overflowMenu`})}),_jsx(_components.td,{children:`nothing — the bar’s trailing item`}),_jsx(_components.td,{children:`—`})]})]})]}),_jsxs(_components.p,{children:[`Slot closures receive a `,_jsx(_components.code,{children:`ChatUser`}),` — the row’s value type (`,_jsx(_components.code,{children:`id`}),`, `,_jsx(_components.code,{children:`name`}),`, `,_jsx(_components.code,{children:`avatarURL`}),`,\n`,_jsx(_components.code,{children:`isOnline`}),`, `,_jsx(_components.code,{children:`isBlockedByMe`}),`, `,_jsx(_components.code,{children:`hasBlockedMe`}),`, `,_jsx(_components.code,{children:`isBlocked`}),`).`]}),_jsx(Frame,{children:_jsx(OptimizedImage,{src:`https://mintcdn.com/cometchat-22654f5b/pWDsskjSUHgot30F/images/ui-kit/ios/v6/users-override-none.png?fit=max\u0026auto=format\u0026n=pWDsskjSUHgot30F\u0026q=85\u0026s=c938d105235fd7712a69523dc311e8ea`,alt:`Default Users list with letter headers, avatars, names and presence dots`,\"data-og-width\":`2560`,width:`2560`,\"data-og-height\":`1520`,height:`1520`,\"data-path\":`images/ui-kit/ios/v6/users-override-none.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/cometchat-22654f5b/pWDsskjSUHgot30F/images/ui-kit/ios/v6/users-override-none.png?w=280\u0026fit=max\u0026auto=format\u0026n=pWDsskjSUHgot30F\u0026q=85\u0026s=be2ccdebe72bed1e215229ed0681f9aa 280w, https://mintcdn.com/cometchat-22654f5b/pWDsskjSUHgot30F/images/ui-kit/ios/v6/users-override-none.png?w=560\u0026fit=max\u0026auto=format\u0026n=pWDsskjSUHgot30F\u0026q=85\u0026s=bbe5eea4c7f4d34e8633299abe703e5d 560w, https://mintcdn.com/cometchat-22654f5b/pWDsskjSUHgot30F/images/ui-kit/ios/v6/users-override-none.png?w=840\u0026fit=max\u0026auto=format\u0026n=pWDsskjSUHgot30F\u0026q=85\u0026s=35bcaeda1606369d7dcafed9b4e0184a 840w, https://mintcdn.com/cometchat-22654f5b/pWDsskjSUHgot30F/images/ui-kit/ios/v6/users-override-none.png?w=1100\u0026fit=max\u0026auto=format\u0026n=pWDsskjSUHgot30F\u0026q=85\u0026s=d5ebf13d38587ecf0192bfd3cb9e1836 1100w, https://mintcdn.com/cometchat-22654f5b/pWDsskjSUHgot30F/images/ui-kit/ios/v6/users-override-none.png?w=1650\u0026fit=max\u0026auto=format\u0026n=pWDsskjSUHgot30F\u0026q=85\u0026s=e59601a93d6b6202fc59d0c0025da165 1650w, https://mintcdn.com/cometchat-22654f5b/pWDsskjSUHgot30F/images/ui-kit/ios/v6/users-override-none.png?w=2500\u0026fit=max\u0026auto=format\u0026n=pWDsskjSUHgot30F\u0026q=85\u0026s=f8c579c94eed6b47d5d37590d44297f4 2500w`})}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`itemView.`}),` Put your own `,_jsx(_components.code,{children:`Button`}),` in the row, and select through the store.`]}),_jsx(CodeBlock,{filename:``,numberOfLines:`15`,language:`swift`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`swift`,children:_jsxs(_components.code,{language:`swift`,numberOfLines:`15`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`@State`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` private`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` var`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` store `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` UsersStore`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`()`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`CometChatUsers`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` store`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: store,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` selectionMode`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: .`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`multiple`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` itemView`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { user, isSelected `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`in`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` AnyView`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` Button`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` let`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` raw `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` store.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`sdkUser`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`for`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: user.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`id`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) { store.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`select`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(raw, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`mode`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: .`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`multiple`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) }`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`label`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` MyUserRow`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`user`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: user, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`selected`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: isSelected)`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` )`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`]})})}),_jsx(Frame,{children:_jsx(OptimizedImage,{src:`https://mintcdn.com/cometchat-22654f5b/pWDsskjSUHgot30F/images/ui-kit/ios/v6/users-override-itemView.png?fit=max\u0026auto=format\u0026n=pWDsskjSUHgot30F\u0026q=85\u0026s=c9595c192d7277f60eefc6b882452866`,alt:`Users list where itemView replaces the entire row with a compact custom layout`,\"data-og-width\":`2560`,width:`2560`,\"data-og-height\":`1520`,height:`1520`,\"data-path\":`images/ui-kit/ios/v6/users-override-itemView.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/cometchat-22654f5b/pWDsskjSUHgot30F/images/ui-kit/ios/v6/users-override-itemView.png?w=280\u0026fit=max\u0026auto=format\u0026n=pWDsskjSUHgot30F\u0026q=85\u0026s=e440ad98a47bc29124c1bccb7d53319d 280w, https://mintcdn.com/cometchat-22654f5b/pWDsskjSUHgot30F/images/ui-kit/ios/v6/users-override-itemView.png?w=560\u0026fit=max\u0026auto=format\u0026n=pWDsskjSUHgot30F\u0026q=85\u0026s=67db6d9b26c9a05cfebd95afe0463a5d 560w, https://mintcdn.com/cometchat-22654f5b/pWDsskjSUHgot30F/images/ui-kit/ios/v6/users-override-itemView.png?w=840\u0026fit=max\u0026auto=format\u0026n=pWDsskjSUHgot30F\u0026q=85\u0026s=2566545aa7c7d4a4fdfec983f7b07e0b 840w, https://mintcdn.com/cometchat-22654f5b/pWDsskjSUHgot30F/images/ui-kit/ios/v6/users-override-itemView.png?w=1100\u0026fit=max\u0026auto=format\u0026n=pWDsskjSUHgot30F\u0026q=85\u0026s=4fa6797558bc46c844d2f5278153f260 1100w, https://mintcdn.com/cometchat-22654f5b/pWDsskjSUHgot30F/images/ui-kit/ios/v6/users-override-itemView.png?w=1650\u0026fit=max\u0026auto=format\u0026n=pWDsskjSUHgot30F\u0026q=85\u0026s=7f437e6d5079d25cb6650f4a92f28e58 1650w, https://mintcdn.com/cometchat-22654f5b/pWDsskjSUHgot30F/images/ui-kit/ios/v6/users-override-itemView.png?w=2500\u0026fit=max\u0026auto=format\u0026n=pWDsskjSUHgot30F\u0026q=85\u0026s=f5827d33464169e85b12b8e0ff68b9a4 2500w`})}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`Region slots.`})}),_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`swift`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`swift`,children:_jsxs(_components.code,{language:`swift`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`cometChatUserTitleView`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { user `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`in`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` Text`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(user.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`name`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`).`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`bold`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`() }`})]}),`\n`]})})}),_jsx(Frame,{caption:`leadingView`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/cometchat-22654f5b/pWDsskjSUHgot30F/images/ui-kit/ios/v6/users-override-leadingView.png?fit=max\u0026auto=format\u0026n=pWDsskjSUHgot30F\u0026q=85\u0026s=d782efebe062e3ae9a2e798c93ede348`,alt:`Users list with a custom leading view replacing the default avatar`,\"data-og-width\":`2560`,width:`2560`,\"data-og-height\":`1520`,height:`1520`,\"data-path\":`images/ui-kit/ios/v6/users-override-leadingView.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/cometchat-22654f5b/pWDsskjSUHgot30F/images/ui-kit/ios/v6/users-override-leadingView.png?w=280\u0026fit=max\u0026auto=format\u0026n=pWDsskjSUHgot30F\u0026q=85\u0026s=11c4fc0df93074d949cc6924ec95e5b5 280w, https://mintcdn.com/cometchat-22654f5b/pWDsskjSUHgot30F/images/ui-kit/ios/v6/users-override-leadingView.png?w=560\u0026fit=max\u0026auto=format\u0026n=pWDsskjSUHgot30F\u0026q=85\u0026s=513645491fcb9555d719adeb94a73d9c 560w, https://mintcdn.com/cometchat-22654f5b/pWDsskjSUHgot30F/images/ui-kit/ios/v6/users-override-leadingView.png?w=840\u0026fit=max\u0026auto=format\u0026n=pWDsskjSUHgot30F\u0026q=85\u0026s=c8523e3184622ccbe732114be5542ef5 840w, https://mintcdn.com/cometchat-22654f5b/pWDsskjSUHgot30F/images/ui-kit/ios/v6/users-override-leadingView.png?w=1100\u0026fit=max\u0026auto=format\u0026n=pWDsskjSUHgot30F\u0026q=85\u0026s=125fd5dd0c3f96ef23727f9ff685255a 1100w, https://mintcdn.com/cometchat-22654f5b/pWDsskjSUHgot30F/images/ui-kit/ios/v6/users-override-leadingView.png?w=1650\u0026fit=max\u0026auto=format\u0026n=pWDsskjSUHgot30F\u0026q=85\u0026s=8bbe9d58ef395095dfc7f5dc6d19d9e8 1650w, https://mintcdn.com/cometchat-22654f5b/pWDsskjSUHgot30F/images/ui-kit/ios/v6/users-override-leadingView.png?w=2500\u0026fit=max\u0026auto=format\u0026n=pWDsskjSUHgot30F\u0026q=85\u0026s=73391c311c37eebaa66add728b71189b 2500w`})}),_jsx(Frame,{caption:`titleView`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/cometchat-22654f5b/pWDsskjSUHgot30F/images/ui-kit/ios/v6/users-override-titleView.png?fit=max\u0026auto=format\u0026n=pWDsskjSUHgot30F\u0026q=85\u0026s=c32e6cfa85f1f8cb46e844f23c682945`,alt:`Users list with a custom title view`,\"data-og-width\":`2560`,width:`2560`,\"data-og-height\":`1520`,height:`1520`,\"data-path\":`images/ui-kit/ios/v6/users-override-titleView.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/cometchat-22654f5b/pWDsskjSUHgot30F/images/ui-kit/ios/v6/users-override-titleView.png?w=280\u0026fit=max\u0026auto=format\u0026n=pWDsskjSUHgot30F\u0026q=85\u0026s=174fee6e10234e1af2c969b49be37ce8 280w, https://mintcdn.com/cometchat-22654f5b/pWDsskjSUHgot30F/images/ui-kit/ios/v6/users-override-titleView.png?w=560\u0026fit=max\u0026auto=format\u0026n=pWDsskjSUHgot30F\u0026q=85\u0026s=b5076d96116f4f0097f013113a8b9b88 560w, https://mintcdn.com/cometchat-22654f5b/pWDsskjSUHgot30F/images/ui-kit/ios/v6/users-override-titleView.png?w=840\u0026fit=max\u0026auto=format\u0026n=pWDsskjSUHgot30F\u0026q=85\u0026s=4dad0806ce55c84fd7a73cc035f26ce6 840w, https://mintcdn.com/cometchat-22654f5b/pWDsskjSUHgot30F/images/ui-kit/ios/v6/users-override-titleView.png?w=1100\u0026fit=max\u0026auto=format\u0026n=pWDsskjSUHgot30F\u0026q=85\u0026s=b3e37b5d32e08b53bfbfff97b2dddbd8 1100w, https://mintcdn.com/cometchat-22654f5b/pWDsskjSUHgot30F/images/ui-kit/ios/v6/users-override-titleView.png?w=1650\u0026fit=max\u0026auto=format\u0026n=pWDsskjSUHgot30F\u0026q=85\u0026s=0530f8c579d8af77d503518c3820aef6 1650w, https://mintcdn.com/cometchat-22654f5b/pWDsskjSUHgot30F/images/ui-kit/ios/v6/users-override-titleView.png?w=2500\u0026fit=max\u0026auto=format\u0026n=pWDsskjSUHgot30F\u0026q=85\u0026s=c6c8f11d76353e06107db18ebffa729b 2500w`})}),_jsx(Frame,{caption:`subtitleView`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/cometchat-22654f5b/pWDsskjSUHgot30F/images/ui-kit/ios/v6/users-override-subtitleView.png?fit=max\u0026auto=format\u0026n=pWDsskjSUHgot30F\u0026q=85\u0026s=8669caf773142ea55e15b99e829d2ef5`,alt:`Users list with a subtitle line added under each name`,\"data-og-width\":`2560`,width:`2560`,\"data-og-height\":`1520`,height:`1520`,\"data-path\":`images/ui-kit/ios/v6/users-override-subtitleView.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/cometchat-22654f5b/pWDsskjSUHgot30F/images/ui-kit/ios/v6/users-override-subtitleView.png?w=280\u0026fit=max\u0026auto=format\u0026n=pWDsskjSUHgot30F\u0026q=85\u0026s=4c8bab4e9e1363be721f94bb5fa374db 280w, https://mintcdn.com/cometchat-22654f5b/pWDsskjSUHgot30F/images/ui-kit/ios/v6/users-override-subtitleView.png?w=560\u0026fit=max\u0026auto=format\u0026n=pWDsskjSUHgot30F\u0026q=85\u0026s=a769f7dd3b7e72eb79f6400283efd2d1 560w, https://mintcdn.com/cometchat-22654f5b/pWDsskjSUHgot30F/images/ui-kit/ios/v6/users-override-subtitleView.png?w=840\u0026fit=max\u0026auto=format\u0026n=pWDsskjSUHgot30F\u0026q=85\u0026s=51101e85d9f120ce4ab9c74248262219 840w, https://mintcdn.com/cometchat-22654f5b/pWDsskjSUHgot30F/images/ui-kit/ios/v6/users-override-subtitleView.png?w=1100\u0026fit=max\u0026auto=format\u0026n=pWDsskjSUHgot30F\u0026q=85\u0026s=5d5f2a4dfbdb0625c0cd969793d342ca 1100w, https://mintcdn.com/cometchat-22654f5b/pWDsskjSUHgot30F/images/ui-kit/ios/v6/users-override-subtitleView.png?w=1650\u0026fit=max\u0026auto=format\u0026n=pWDsskjSUHgot30F\u0026q=85\u0026s=ba39b20a84d707011d56640b7432480d 1650w, https://mintcdn.com/cometchat-22654f5b/pWDsskjSUHgot30F/images/ui-kit/ios/v6/users-override-subtitleView.png?w=2500\u0026fit=max\u0026auto=format\u0026n=pWDsskjSUHgot30F\u0026q=85\u0026s=93c64a6a5206b8d05ba9bef14847695f 2500w`})}),_jsx(Frame,{caption:`trailingView`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/cometchat-22654f5b/pWDsskjSUHgot30F/images/ui-kit/ios/v6/users-override-trailingView.png?fit=max\u0026auto=format\u0026n=pWDsskjSUHgot30F\u0026q=85\u0026s=a09cf77a4d7b3c3ab41373ecdd2eb676`,alt:`Users list with a trailing view added to each row`,\"data-og-width\":`2560`,width:`2560`,\"data-og-height\":`1520`,height:`1520`,\"data-path\":`images/ui-kit/ios/v6/users-override-trailingView.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/cometchat-22654f5b/pWDsskjSUHgot30F/images/ui-kit/ios/v6/users-override-trailingView.png?w=280\u0026fit=max\u0026auto=format\u0026n=pWDsskjSUHgot30F\u0026q=85\u0026s=656db40f098d622292ebb1e5991de02c 280w, https://mintcdn.com/cometchat-22654f5b/pWDsskjSUHgot30F/images/ui-kit/ios/v6/users-override-trailingView.png?w=560\u0026fit=max\u0026auto=format\u0026n=pWDsskjSUHgot30F\u0026q=85\u0026s=a026cbeebbdee5960435345f6085a2e0 560w, https://mintcdn.com/cometchat-22654f5b/pWDsskjSUHgot30F/images/ui-kit/ios/v6/users-override-trailingView.png?w=840\u0026fit=max\u0026auto=format\u0026n=pWDsskjSUHgot30F\u0026q=85\u0026s=ebff8187b310d0867b6209ddd3077c58 840w, https://mintcdn.com/cometchat-22654f5b/pWDsskjSUHgot30F/images/ui-kit/ios/v6/users-override-trailingView.png?w=1100\u0026fit=max\u0026auto=format\u0026n=pWDsskjSUHgot30F\u0026q=85\u0026s=64809a33c95318375970d92644556dca 1100w, https://mintcdn.com/cometchat-22654f5b/pWDsskjSUHgot30F/images/ui-kit/ios/v6/users-override-trailingView.png?w=1650\u0026fit=max\u0026auto=format\u0026n=pWDsskjSUHgot30F\u0026q=85\u0026s=37d8b4ae7062a9280f01805c8a87ce72 1650w, https://mintcdn.com/cometchat-22654f5b/pWDsskjSUHgot30F/images/ui-kit/ios/v6/users-override-trailingView.png?w=2500\u0026fit=max\u0026auto=format\u0026n=pWDsskjSUHgot30F\u0026q=85\u0026s=2fd3ec177e6aaa20c4f2617b4edede70 2500w`})}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`State views.`}),` `,_jsx(_components.code,{children:`errorView`}),` receives a `,_jsx(_components.code,{children:`retry`}),` closure — call it from your button. It asks\nfor the next page, as the built-in Retry does.`]}),_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`swift`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`swift`,children:_jsxs(_components.code,{language:`swift`,numberOfLines:`5`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`CometChatUsers`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` loadingView`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`AnyView`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`MySpinner`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`()) },`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` emptyView`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`AnyView`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`MyUsersEmptyState`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`()) },`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` errorView`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { retry `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`in`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` AnyView`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`MyErrorState`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`onRetry`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: retry)) }`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`]})})}),_jsx(Frame,{caption:`loadingView`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/cometchat-22654f5b/pWDsskjSUHgot30F/images/ui-kit/ios/v6/users-override-loadingView.png?fit=max\u0026auto=format\u0026n=pWDsskjSUHgot30F\u0026q=85\u0026s=76737a9b9e1028fa0cfb495942b8171c`,alt:`Users list showing a custom loading view`,\"data-og-width\":`2560`,width:`2560`,\"data-og-height\":`1520`,height:`1520`,\"data-path\":`images/ui-kit/ios/v6/users-override-loadingView.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/cometchat-22654f5b/pWDsskjSUHgot30F/images/ui-kit/ios/v6/users-override-loadingView.png?w=280\u0026fit=max\u0026auto=format\u0026n=pWDsskjSUHgot30F\u0026q=85\u0026s=c923c703d2637019ce03a971bd46ddda 280w, https://mintcdn.com/cometchat-22654f5b/pWDsskjSUHgot30F/images/ui-kit/ios/v6/users-override-loadingView.png?w=560\u0026fit=max\u0026auto=format\u0026n=pWDsskjSUHgot30F\u0026q=85\u0026s=2bdc1a257468c9cff757175f449191da 560w, https://mintcdn.com/cometchat-22654f5b/pWDsskjSUHgot30F/images/ui-kit/ios/v6/users-override-loadingView.png?w=840\u0026fit=max\u0026auto=format\u0026n=pWDsskjSUHgot30F\u0026q=85\u0026s=a9dd9437c0aa0b791b585cb19f9789bf 840w, https://mintcdn.com/cometchat-22654f5b/pWDsskjSUHgot30F/images/ui-kit/ios/v6/users-override-loadingView.png?w=1100\u0026fit=max\u0026auto=format\u0026n=pWDsskjSUHgot30F\u0026q=85\u0026s=023c0b0a4d60cc6435b51098a1245e43 1100w, https://mintcdn.com/cometchat-22654f5b/pWDsskjSUHgot30F/images/ui-kit/ios/v6/users-override-loadingView.png?w=1650\u0026fit=max\u0026auto=format\u0026n=pWDsskjSUHgot30F\u0026q=85\u0026s=2ac245989bb83c01d9650c39c3c05a73 1650w, https://mintcdn.com/cometchat-22654f5b/pWDsskjSUHgot30F/images/ui-kit/ios/v6/users-override-loadingView.png?w=2500\u0026fit=max\u0026auto=format\u0026n=pWDsskjSUHgot30F\u0026q=85\u0026s=8fd425dc46a0033c07b8fcd5d1f36dd9 2500w`})}),_jsx(Frame,{caption:`emptyView`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/cometchat-22654f5b/pWDsskjSUHgot30F/images/ui-kit/ios/v6/users-override-emptyView.png?fit=max\u0026auto=format\u0026n=pWDsskjSUHgot30F\u0026q=85\u0026s=6eb61f5e7666734364fb5c6cc49b78d1`,alt:`Users list showing a custom empty state`,\"data-og-width\":`2560`,width:`2560`,\"data-og-height\":`1520`,height:`1520`,\"data-path\":`images/ui-kit/ios/v6/users-override-emptyView.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/cometchat-22654f5b/pWDsskjSUHgot30F/images/ui-kit/ios/v6/users-override-emptyView.png?w=280\u0026fit=max\u0026auto=format\u0026n=pWDsskjSUHgot30F\u0026q=85\u0026s=8a11d3c6b6c1a0383db6bbbbe1b79449 280w, https://mintcdn.com/cometchat-22654f5b/pWDsskjSUHgot30F/images/ui-kit/ios/v6/users-override-emptyView.png?w=560\u0026fit=max\u0026auto=format\u0026n=pWDsskjSUHgot30F\u0026q=85\u0026s=edc69dec486050877d794548d655fae8 560w, https://mintcdn.com/cometchat-22654f5b/pWDsskjSUHgot30F/images/ui-kit/ios/v6/users-override-emptyView.png?w=840\u0026fit=max\u0026auto=format\u0026n=pWDsskjSUHgot30F\u0026q=85\u0026s=0670d6ccbf0bf9aaa7957fde2aa577ef 840w, https://mintcdn.com/cometchat-22654f5b/pWDsskjSUHgot30F/images/ui-kit/ios/v6/users-override-emptyView.png?w=1100\u0026fit=max\u0026auto=format\u0026n=pWDsskjSUHgot30F\u0026q=85\u0026s=153718d67460af1bc325edfb48992692 1100w, https://mintcdn.com/cometchat-22654f5b/pWDsskjSUHgot30F/images/ui-kit/ios/v6/users-override-emptyView.png?w=1650\u0026fit=max\u0026auto=format\u0026n=pWDsskjSUHgot30F\u0026q=85\u0026s=01897d67da6e000302088dd279dfa86f 1650w, https://mintcdn.com/cometchat-22654f5b/pWDsskjSUHgot30F/images/ui-kit/ios/v6/users-override-emptyView.png?w=2500\u0026fit=max\u0026auto=format\u0026n=pWDsskjSUHgot30F\u0026q=85\u0026s=a609b439152956a4b7eef4f7a83f864c 2500w`})}),_jsx(Frame,{caption:`errorView`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/cometchat-22654f5b/pWDsskjSUHgot30F/images/ui-kit/ios/v6/users-override-errorView.png?fit=max\u0026auto=format\u0026n=pWDsskjSUHgot30F\u0026q=85\u0026s=f324ccc69de9e099c285f44a9ee98527`,alt:`Users list showing a custom error state with a retry button`,\"data-og-width\":`2560`,width:`2560`,\"data-og-height\":`1520`,height:`1520`,\"data-path\":`images/ui-kit/ios/v6/users-override-errorView.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/cometchat-22654f5b/pWDsskjSUHgot30F/images/ui-kit/ios/v6/users-override-errorView.png?w=280\u0026fit=max\u0026auto=format\u0026n=pWDsskjSUHgot30F\u0026q=85\u0026s=34642d093a0046f1774af42cf4a3162b 280w, https://mintcdn.com/cometchat-22654f5b/pWDsskjSUHgot30F/images/ui-kit/ios/v6/users-override-errorView.png?w=560\u0026fit=max\u0026auto=format\u0026n=pWDsskjSUHgot30F\u0026q=85\u0026s=2bc75b9db6f8cdeb91ed50cee3c81daf 560w, https://mintcdn.com/cometchat-22654f5b/pWDsskjSUHgot30F/images/ui-kit/ios/v6/users-override-errorView.png?w=840\u0026fit=max\u0026auto=format\u0026n=pWDsskjSUHgot30F\u0026q=85\u0026s=2495e947248dfe4de8cec33d18ad7fef 840w, https://mintcdn.com/cometchat-22654f5b/pWDsskjSUHgot30F/images/ui-kit/ios/v6/users-override-errorView.png?w=1100\u0026fit=max\u0026auto=format\u0026n=pWDsskjSUHgot30F\u0026q=85\u0026s=447aa4305b989ad1b9d1a98662b17fa0 1100w, https://mintcdn.com/cometchat-22654f5b/pWDsskjSUHgot30F/images/ui-kit/ios/v6/users-override-errorView.png?w=1650\u0026fit=max\u0026auto=format\u0026n=pWDsskjSUHgot30F\u0026q=85\u0026s=4fe6478295a3af9565ebca55a7aee3f7 1650w, https://mintcdn.com/cometchat-22654f5b/pWDsskjSUHgot30F/images/ui-kit/ios/v6/users-override-errorView.png?w=2500\u0026fit=max\u0026auto=format\u0026n=pWDsskjSUHgot30F\u0026q=85\u0026s=7166ec690ed70f7c50b597a46268eced 2500w`})}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`overflowMenu.`}),` Adds your own item to the navigation bar’s trailing edge. It is replaced\nby the tick while a selection is being made.`]}),_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`swift`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`swift`,children:_jsxs(_components.code,{language:`swift`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`CometChatUsers`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`overflowMenu`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`AnyView`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`MyToolbarMenu`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`()) })`})]}),`\n`]})})})]}),_jsxs(Tab,{title:`UIKit`,id:`uikit-8`,children:[_jsxs(_components.p,{children:[`Each slot receives the SDK `,_jsx(_components.code,{children:`User`}),` — `,_jsx(_components.code,{children:`nil`}),` on a seeded store, which has none.`]}),_jsx(CodeBlock,{filename:``,numberOfLines:`9`,language:`swift`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`swift`,children:_jsxs(_components.code,{language:`swift`,numberOfLines:`9`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`let`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` users `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` CometChatUsers`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`()`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` .`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:`set`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`subtitle`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { user `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`in`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` guard`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` let`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` user `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`else`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`return`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` UIView`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`() }`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` return`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` MyPresenceLabel`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`user`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: user)`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` })`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` .`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:`set`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`trailingView`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { user `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`in`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` guard`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` let`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` user `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`else`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`return`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` UIView`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`() }`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` return`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` MyRoleLabel`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`user`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: user)`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` })`})}),`\n`]})})}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Setter`}),_jsx(_components.th,{children:`Replaces`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`set(listItemView:)`})}),_jsx(_components.td,{children:`the whole row`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`set(leadingView:)`})}),_jsx(_components.td,{children:`the avatar and its presence dot`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`set(titleView:)`})}),_jsx(_components.td,{children:`the name`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`set(subtitle:)`})}),_jsx(_components.td,{children:`nothing — it adds a line under the name`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`set(trailingView:)`})}),_jsx(_components.td,{children:`nothing — it adds a trailing view`})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`set(loadingView:)`}),`, `,_jsx(_components.code,{children:`set(emptyView:)`}),`, `,_jsx(_components.code,{children:`set(errorView:)`})]}),_jsx(_components.td,{children:`the three state views — loading is a 30-row shimmer`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`listItemCellClass`})}),_jsxs(_components.td,{children:[`the cell class — subclass `,_jsx(_components.code,{children:`CometChatUserListItem`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`setOverflowMenu(_:)`})}),_jsx(_components.td,{children:`nothing — the bar’s trailing item, replaced by the tick while selecting`})]})]})]}),_jsx(Frame,{children:_jsx(OptimizedImage,{src:`https://mintcdn.com/cometchat-22654f5b/pWDsskjSUHgot30F/images/ui-kit/ios/v6/users-uikit-stock.png?fit=max\u0026auto=format\u0026n=pWDsskjSUHgot30F\u0026q=85\u0026s=c64852b1cb620d17ba7653fbda11633c`,alt:`Default UIKit Users list with the built-in cell and letter headers`,\"data-og-width\":`2560`,width:`2560`,\"data-og-height\":`1520`,height:`1520`,\"data-path\":`images/ui-kit/ios/v6/users-uikit-stock.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/cometchat-22654f5b/pWDsskjSUHgot30F/images/ui-kit/ios/v6/users-uikit-stock.png?w=280\u0026fit=max\u0026auto=format\u0026n=pWDsskjSUHgot30F\u0026q=85\u0026s=f2959cbdcb84c8f7cead9a27d0453d6d 280w, https://mintcdn.com/cometchat-22654f5b/pWDsskjSUHgot30F/images/ui-kit/ios/v6/users-uikit-stock.png?w=560\u0026fit=max\u0026auto=format\u0026n=pWDsskjSUHgot30F\u0026q=85\u0026s=c47b12b92c699b18cd787b1b7ad545b6 560w, https://mintcdn.com/cometchat-22654f5b/pWDsskjSUHgot30F/images/ui-kit/ios/v6/users-uikit-stock.png?w=840\u0026fit=max\u0026auto=format\u0026n=pWDsskjSUHgot30F\u0026q=85\u0026s=b712380c926eed334a4aa45b7334159f 840w, https://mintcdn.com/cometchat-22654f5b/pWDsskjSUHgot30F/images/ui-kit/ios/v6/users-uikit-stock.png?w=1100\u0026fit=max\u0026auto=format\u0026n=pWDsskjSUHgot30F\u0026q=85\u0026s=5207e8eeeb0059127216ee34c3ef2bbf 1100w, https://mintcdn.com/cometchat-22654f5b/pWDsskjSUHgot30F/images/ui-kit/ios/v6/users-uikit-stock.png?w=1650\u0026fit=max\u0026auto=format\u0026n=pWDsskjSUHgot30F\u0026q=85\u0026s=8a61a20c34d355f18ed3fb380ea7b707 1650w, https://mintcdn.com/cometchat-22654f5b/pWDsskjSUHgot30F/images/ui-kit/ios/v6/users-uikit-stock.png?w=2500\u0026fit=max\u0026auto=format\u0026n=pWDsskjSUHgot30F\u0026q=85\u0026s=f53d01eb5027fc4f9aebc00e3dceb397 2500w`})}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`listItemView.`}),` Give the view its own controls, and select with `,_jsx(_components.code,{children:`selectUser(_:mode:)`}),`.`]}),_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`swift`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`swift`,children:_jsxs(_components.code,{language:`swift`,numberOfLines:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`users.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:`set`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`listItemView`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { user `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`in`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` guard`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` let`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` user `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`else`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`return`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` UIView`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`() }`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` return`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` MyUserRow`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`user`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: user)`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`})`})}),`\n`]})})}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`State views.`}),` A custom error view gets no Retry hook; call `,_jsx(_components.code,{children:`fetchData()`}),` from your own\nbutton.`]}),_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`swift`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`swift`,children:_jsxs(_components.code,{language:`swift`,numberOfLines:`4`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`users`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` .`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:`set`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`loadingView`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`MySpinner`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`())`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` .`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:`set`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`emptyView`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`MyEmptyState`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`())`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` .`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:`set`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`errorView`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`MyErrorState`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`())`})]}),`\n`]})})}),_jsx(Frame,{caption:`loadingView`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/cometchat-22654f5b/pWDsskjSUHgot30F/images/ui-kit/ios/v6/users-uikit-loadingView.png?fit=max\u0026auto=format\u0026n=pWDsskjSUHgot30F\u0026q=85\u0026s=83670dd9b27853cbcf267dfa4f362273`,alt:`UIKit Users showing a custom loading view`,\"data-og-width\":`2560`,width:`2560`,\"data-og-height\":`1520`,height:`1520`,\"data-path\":`images/ui-kit/ios/v6/users-uikit-loadingView.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/cometchat-22654f5b/pWDsskjSUHgot30F/images/ui-kit/ios/v6/users-uikit-loadingView.png?w=280\u0026fit=max\u0026auto=format\u0026n=pWDsskjSUHgot30F\u0026q=85\u0026s=ae61fe2dae8be4fee2134752b1adfb60 280w, https://mintcdn.com/cometchat-22654f5b/pWDsskjSUHgot30F/images/ui-kit/ios/v6/users-uikit-loadingView.png?w=560\u0026fit=max\u0026auto=format\u0026n=pWDsskjSUHgot30F\u0026q=85\u0026s=765a5a44310a1f4e30168027c8e3b228 560w, https://mintcdn.com/cometchat-22654f5b/pWDsskjSUHgot30F/images/ui-kit/ios/v6/users-uikit-loadingView.png?w=840\u0026fit=max\u0026auto=format\u0026n=pWDsskjSUHgot30F\u0026q=85\u0026s=41deb1f4c49bf18f1e1592151b1e2651 840w, https://mintcdn.com/cometchat-22654f5b/pWDsskjSUHgot30F/images/ui-kit/ios/v6/users-uikit-loadingView.png?w=1100\u0026fit=max\u0026auto=format\u0026n=pWDsskjSUHgot30F\u0026q=85\u0026s=b9a305671086384f98f422d739ab79a1 1100w, https://mintcdn.com/cometchat-22654f5b/pWDsskjSUHgot30F/images/ui-kit/ios/v6/users-uikit-loadingView.png?w=1650\u0026fit=max\u0026auto=format\u0026n=pWDsskjSUHgot30F\u0026q=85\u0026s=8dae82da68390d0019fc239dbbfe7b2c 1650w, https://mintcdn.com/cometchat-22654f5b/pWDsskjSUHgot30F/images/ui-kit/ios/v6/users-uikit-loadingView.png?w=2500\u0026fit=max\u0026auto=format\u0026n=pWDsskjSUHgot30F\u0026q=85\u0026s=28ff3f7e80f7b1abc5b10d5225b07742 2500w`})}),_jsx(Frame,{caption:`emptyView`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/cometchat-22654f5b/pWDsskjSUHgot30F/images/ui-kit/ios/v6/users-uikit-emptyView.png?fit=max\u0026auto=format\u0026n=pWDsskjSUHgot30F\u0026q=85\u0026s=33e73cc98696c1929f74964502369bfd`,alt:`UIKit Users showing a custom empty state`,\"data-og-width\":`2560`,width:`2560`,\"data-og-height\":`1520`,height:`1520`,\"data-path\":`images/ui-kit/ios/v6/users-uikit-emptyView.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/cometchat-22654f5b/pWDsskjSUHgot30F/images/ui-kit/ios/v6/users-uikit-emptyView.png?w=280\u0026fit=max\u0026auto=format\u0026n=pWDsskjSUHgot30F\u0026q=85\u0026s=cba96597430a826516a76ac1928d8bda 280w, https://mintcdn.com/cometchat-22654f5b/pWDsskjSUHgot30F/images/ui-kit/ios/v6/users-uikit-emptyView.png?w=560\u0026fit=max\u0026auto=format\u0026n=pWDsskjSUHgot30F\u0026q=85\u0026s=e7deb2263a9aaad7fdb238a5a2ba09f0 560w, https://mintcdn.com/cometchat-22654f5b/pWDsskjSUHgot30F/images/ui-kit/ios/v6/users-uikit-emptyView.png?w=840\u0026fit=max\u0026auto=format\u0026n=pWDsskjSUHgot30F\u0026q=85\u0026s=98a1f0e986b2d00aa1c6e676efa19eec 840w, https://mintcdn.com/cometchat-22654f5b/pWDsskjSUHgot30F/images/ui-kit/ios/v6/users-uikit-emptyView.png?w=1100\u0026fit=max\u0026auto=format\u0026n=pWDsskjSUHgot30F\u0026q=85\u0026s=4b0015ec214f06983ecbc0e0bc441ea1 1100w, https://mintcdn.com/cometchat-22654f5b/pWDsskjSUHgot30F/images/ui-kit/ios/v6/users-uikit-emptyView.png?w=1650\u0026fit=max\u0026auto=format\u0026n=pWDsskjSUHgot30F\u0026q=85\u0026s=cab07a3fe0956e66135a9ad22b917821 1650w, https://mintcdn.com/cometchat-22654f5b/pWDsskjSUHgot30F/images/ui-kit/ios/v6/users-uikit-emptyView.png?w=2500\u0026fit=max\u0026auto=format\u0026n=pWDsskjSUHgot30F\u0026q=85\u0026s=689ea2d116cb8ca10ca0767a63ef9b8a 2500w`})}),_jsx(Frame,{caption:`errorView`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/cometchat-22654f5b/pWDsskjSUHgot30F/images/ui-kit/ios/v6/users-uikit-errorView.png?fit=max\u0026auto=format\u0026n=pWDsskjSUHgot30F\u0026q=85\u0026s=e330d8568189d4bdec1b1d3fc749002f`,alt:`UIKit Users showing a custom error state`,\"data-og-width\":`2560`,width:`2560`,\"data-og-height\":`1520`,height:`1520`,\"data-path\":`images/ui-kit/ios/v6/users-uikit-errorView.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/cometchat-22654f5b/pWDsskjSUHgot30F/images/ui-kit/ios/v6/users-uikit-errorView.png?w=280\u0026fit=max\u0026auto=format\u0026n=pWDsskjSUHgot30F\u0026q=85\u0026s=1af9a31a6a6fa7d4083992578f23a2a3 280w, https://mintcdn.com/cometchat-22654f5b/pWDsskjSUHgot30F/images/ui-kit/ios/v6/users-uikit-errorView.png?w=560\u0026fit=max\u0026auto=format\u0026n=pWDsskjSUHgot30F\u0026q=85\u0026s=51f2e0e141a6582198f98367c0b92c2b 560w, https://mintcdn.com/cometchat-22654f5b/pWDsskjSUHgot30F/images/ui-kit/ios/v6/users-uikit-errorView.png?w=840\u0026fit=max\u0026auto=format\u0026n=pWDsskjSUHgot30F\u0026q=85\u0026s=7b0975887fe78f8ecf078128f8fe91c2 840w, https://mintcdn.com/cometchat-22654f5b/pWDsskjSUHgot30F/images/ui-kit/ios/v6/users-uikit-errorView.png?w=1100\u0026fit=max\u0026auto=format\u0026n=pWDsskjSUHgot30F\u0026q=85\u0026s=cc8cc708b44686b5e915d80a3b88b547 1100w, https://mintcdn.com/cometchat-22654f5b/pWDsskjSUHgot30F/images/ui-kit/ios/v6/users-uikit-errorView.png?w=1650\u0026fit=max\u0026auto=format\u0026n=pWDsskjSUHgot30F\u0026q=85\u0026s=3854681538d54e7f9ef30b2dc433eb2e 1650w, https://mintcdn.com/cometchat-22654f5b/pWDsskjSUHgot30F/images/ui-kit/ios/v6/users-uikit-errorView.png?w=2500\u0026fit=max\u0026auto=format\u0026n=pWDsskjSUHgot30F\u0026q=85\u0026s=067ccdf59ab304a581d4589cd39cb60b 2500w`})}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`Replacing the cell.`})}),_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`swift`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`swift`,children:_jsxs(_components.code,{language:`swift`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`users.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`listItemCellClass`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` MyUserCell.`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`self`})]}),`\n`]})})}),_jsx(Frame,{children:_jsx(OptimizedImage,{src:`https://mintcdn.com/cometchat-22654f5b/pWDsskjSUHgot30F/images/ui-kit/ios/v6/users-uikit-customCell.png?fit=max\u0026auto=format\u0026n=pWDsskjSUHgot30F\u0026q=85\u0026s=a1059ff3da9dc63e9598f8a58190751e`,alt:`UIKit Users list rendering a custom UITableViewCell subclass`,\"data-og-width\":`2560`,width:`2560`,\"data-og-height\":`1520`,height:`1520`,\"data-path\":`images/ui-kit/ios/v6/users-uikit-customCell.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/cometchat-22654f5b/pWDsskjSUHgot30F/images/ui-kit/ios/v6/users-uikit-customCell.png?w=280\u0026fit=max\u0026auto=format\u0026n=pWDsskjSUHgot30F\u0026q=85\u0026s=19118246398409ffaa83315b85641c98 280w, https://mintcdn.com/cometchat-22654f5b/pWDsskjSUHgot30F/images/ui-kit/ios/v6/users-uikit-customCell.png?w=560\u0026fit=max\u0026auto=format\u0026n=pWDsskjSUHgot30F\u0026q=85\u0026s=5a0f0889eb36e0b4a08c23cfe8eaeb62 560w, https://mintcdn.com/cometchat-22654f5b/pWDsskjSUHgot30F/images/ui-kit/ios/v6/users-uikit-customCell.png?w=840\u0026fit=max\u0026auto=format\u0026n=pWDsskjSUHgot30F\u0026q=85\u0026s=97c7cc9f2b2b072f60377be567208374 840w, https://mintcdn.com/cometchat-22654f5b/pWDsskjSUHgot30F/images/ui-kit/ios/v6/users-uikit-customCell.png?w=1100\u0026fit=max\u0026auto=format\u0026n=pWDsskjSUHgot30F\u0026q=85\u0026s=d5a407352476c0c6bef30b97b045fa7b 1100w, https://mintcdn.com/cometchat-22654f5b/pWDsskjSUHgot30F/images/ui-kit/ios/v6/users-uikit-customCell.png?w=1650\u0026fit=max\u0026auto=format\u0026n=pWDsskjSUHgot30F\u0026q=85\u0026s=f48c7e3503fb1ed71f7dc12c8ee6ad8b 1650w, https://mintcdn.com/cometchat-22654f5b/pWDsskjSUHgot30F/images/ui-kit/ios/v6/users-uikit-customCell.png?w=2500\u0026fit=max\u0026auto=format\u0026n=pWDsskjSUHgot30F\u0026q=85\u0026s=0a1605f7c12b22857aa554803a755433 2500w`})}),_jsxs(_components.p,{children:[_jsx(_components.code,{children:`configure(with:style:avatarStyle:statusIndicatorStyle:theme:hideUserStatus:selectionMode:isSelected:showsSeparator:)`}),`\nis the cell’s override point, and it resets the slots itself: rows are updated in place,\nwhich skips `,_jsx(_components.code,{children:`prepareForReuse()`}),`.`]})]})]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`A custom row view gets `,_jsx(_components.strong,{children:`no`}),` tap, long press, selection, swipe or menu from the Kit —\nthe row handles its own interaction.`]})}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`menu-options`,children:`Menu Options`}),`\n`,_jsx(_components.p,{children:`The list has no options of its own. Give it some and each row shows them twice: as\ntrailing swipe actions and as a long-press menu.`}),`\n`,_jsxs(Tabs,{children:[_jsxs(Tab,{title:`SwiftUI`,id:`swiftui-9`,children:[_jsx(CodeBlock,{filename:``,numberOfLines:`8`,language:`swift`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`swift`,children:_jsxs(_components.code,{language:`swift`,numberOfLines:`8`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`CometChatUsers`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` addOptions`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { user `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`in`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`MenuOption`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`id`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`title`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`systemImage`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)]`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` onOptionSelected`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { user, option `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`in`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` option.id `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`==`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`openChat`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`with`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: user) }`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`]})})}),_jsxs(_components.p,{children:[_jsx(_components.code,{children:`options`}),` replaces the list’s (empty) set; `,_jsx(_components.code,{children:`addOptions`}),` adds to it and is used only when\n`,_jsx(_components.code,{children:`options`}),` is not set.`]})]}),_jsxs(Tab,{title:`UIKit`,id:`uikit-9`,children:[_jsx(CodeBlock,{filename:``,numberOfLines:`7`,language:`swift`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`swift`,children:_jsxs(_components.code,{language:`swift`,numberOfLines:`7`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`let`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` users `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` CometChatUsers`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`()`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` .`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:`set`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`options`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { user `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`in`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`CometChatUserOption`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`id`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`title`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`icon`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`UIImage`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`systemName`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`),`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` onClick`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { user, indexPath `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`in`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` let`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` user { `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`openChat`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`with`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: user) }`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` })]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` })`})}),`\n`]})})}),_jsxs(_components.p,{children:[_jsx(_components.code,{children:`set(options:)`}),` replaces the list’s (empty) set; `,_jsx(_components.code,{children:`add(options:)`}),` adds to it and is used only\nwhen `,_jsx(_components.code,{children:`set(options:)`}),` is not. `,_jsx(_components.code,{children:`CometChatUserOption(titleColor:titleFont:iconTint:backgroundColor:onClick:)`}),`\nis also available, and its `,_jsx(_components.code,{children:`onClick`}),` receives the row’s index. A full swipe never fires the\nfirst action.`]})]})]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`common-patterns`,children:`Common Patterns`}),`\n`,_jsx(Heading,{level:`3`,id:`open-a-chat-on-tap`,children:`Open a chat on tap`}),`\n`,_jsxs(Tabs,{children:[_jsx(Tab,{title:`SwiftUI`,id:`swiftui-10`,children:_jsx(CodeBlock,{filename:``,numberOfLines:`6`,language:`swift`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`swift`,children:_jsxs(_components.code,{language:`swift`,numberOfLines:`6`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`@State`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` private`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` var`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` path: [User] `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` []`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`NavigationStack`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`path`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: $path) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` CometChatUsers`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`embedsNavigationStack`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`onItemClick`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { path.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`append`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`$0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) })`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` .`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`navigationDestination`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`for`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: User.`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`self`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) { `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`ChatScreen`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`user`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`$0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) }`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})}),_jsx(Tab,{title:`UIKit`,id:`uikit-10`,children:_jsxs(_components.p,{children:[`See `,_jsx(_components.a,{href:`#quick-start`,children:`Quick Start`}),`: `,_jsx(_components.code,{children:`set(onItemClick:)`}),` hands you the `,_jsx(_components.code,{children:`User`}),` to open your message screen with.`]})})]}),`\n`,_jsx(Heading,{level:`3`,id:`friends-only-with-your-own-empty-state`,children:`Friends only, with your own empty state`}),`\n`,_jsxs(Tabs,{children:[_jsx(Tab,{title:`SwiftUI`,id:`swiftui-11`,children:_jsx(CodeBlock,{filename:``,numberOfLines:`6`,language:`swift`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`swift`,children:_jsxs(_components.code,{language:`swift`,numberOfLines:`6`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`@State`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` private`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` var`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` friends `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` UsersRequest.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`UsersRequestBuilder`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`limit`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`30`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`).`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`friendsOnly`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`CometChatUsers`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` usersRequestBuilder`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: friends,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` emptyView`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`AnyView`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`NoFriendsYet`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`onInvite`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: invite)) }`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`]})})})}),_jsx(Tab,{title:`UIKit`,id:`uikit-11`,children:_jsxs(_components.p,{children:[`Combine `,_jsx(_components.code,{children:`friendsOnly(true)`}),` in `,_jsx(_components.a,{href:`#filtering-users`,children:`Filtering Users`}),` with `,_jsx(_components.code,{children:`set(emptyView:)`}),` in\n`,_jsx(_components.a,{href:`#custom-view-slots`,children:`Custom View Slots`}),`.`]})})]}),`\n`,_jsx(Heading,{level:`3`,id:`scope-buttons-under-the-search-field`,children:`Scope buttons under the search field`}),`\n`,_jsxs(Tabs,{children:[_jsxs(Tab,{title:`SwiftUI`,id:`swiftui-12`,children:[_jsxs(_components.p,{children:[_jsx(_components.code,{children:`.cometChatSearchScopes(_:selection:)`}),` puts scope buttons under the search field, in the\nnavigation bar, as a New Chat screen switches between Users and Groups. The rows scroll under\nthe field and the buttons with the bar’s soft edge, and the large title stays sharp.`]}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Parameter`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`What it does`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`titles`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`[String]`})}),_jsx(_components.td,{children:`the buttons, in order (right to left in a right-to-left language); empty shows none`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`selection`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Binding\u003cInt>`})}),_jsxs(_components.td,{children:[`the selected button’s index: a tap writes it, and setting it moves the highlight. An index outside `,_jsx(_components.code,{children:`titles`}),` highlights the nearest button`]})]})]})]}),_jsx(_components.p,{children:`The buttons show whether or not the field is being searched, and they don’t filter the\nsearch: the list only reports the selection, and what it means is up to you. The modifier\napplies to every list under it, so when your screen swaps one list for the other, the\nbuttons stay in the bar with the right one selected.`}),_jsx(CodeBlock,{filename:``,numberOfLines:`16`,language:`swift`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`swift`,children:_jsxs(_components.code,{language:`swift`,numberOfLines:`16`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`struct`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` NewChatView`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`View `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` @State`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` private`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` var`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` page `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 0`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` var`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` body: `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`some`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` View {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` NavigationStack`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` Group`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` page `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`==`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` CometChatUsers`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`embedsNavigationStack`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`else`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` CometChatGroups`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`embedsNavigationStack`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` .`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`cometChatSearchScopes`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`([`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Users\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Groups\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`], `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`selection`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: $page)`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]}),_jsx(Tab,{title:`UIKit`,id:`uikit-12`,children:_jsxs(_components.p,{children:[`The UIKit list has no scope buttons. Host `,_jsx(_components.code,{children:`CometChatUsers`}),` and `,_jsx(_components.code,{children:`CometChatGroups`}),` under your\nown `,_jsx(_components.code,{children:`UISegmentedControl`}),` — see `,_jsx(_components.a,{href:`/ui-kit/ios/v6/guide-new-chat`,children:`New Chat`}),`.`]})})]}),`\n`,_jsx(Heading,{level:`3`,id:`preview-without-credentials`,children:`Preview without credentials`}),`\n`,_jsxs(Tabs,{children:[_jsx(Tab,{title:`SwiftUI`,id:`swiftui-13`,children:_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`swift`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`swift`,children:_jsxs(_components.code,{language:`swift`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`#Preview`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` CometChatUsers`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`store`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: .`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`init`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`seeded`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: .`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`populated`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(sections, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`hasMore`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)))`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})}),_jsxs(Tab,{title:`UIKit`,id:`uikit-13`,children:[_jsx(_components.p,{children:`Pass your own store to share one, or a seeded one to render a fixed state with no session:`}),_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`swift`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`swift`,children:_jsxs(_components.code,{language:`swift`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`let`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` users `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` CometChatUsers`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`usersStore`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`UsersStore`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`seeded`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: .`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`populated`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(sections, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`hasMore`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)))`})]}),`\n`]})})})]})]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`advanced-methods`,children:`Advanced Methods`}),`\n`,_jsx(Heading,{level:`3`,id:`selection`,children:`Selection`}),`\n`,_jsxs(Tabs,{children:[_jsx(Tab,{title:`SwiftUI`,id:`swiftui-14`,children:_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`swift`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`swift`,children:_jsxs(_components.code,{language:`swift`,numberOfLines:`5`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`CometChatUsers`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` selectionMode`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: .`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`multiple`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` onSelection`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { users `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`in`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` addMembers`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`Set`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(users.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`compactMap`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(\\\\.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`uid`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`))) },`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` onSelectionChange`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { users `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`in`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`\\\\(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`users.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:`count`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`)`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` selected\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) }`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`]})})})}),_jsx(Tab,{title:`UIKit`,id:`uikit-14`,children:_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`swift`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`swift`,children:_jsxs(_components.code,{language:`swift`,numberOfLines:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`let`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` picker `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` CometChatUsers`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`()`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` .`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:`set`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`selectionMode`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: .`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`multiple`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` .`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:`set`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`onSelection`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { users `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`in`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`\\\\(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`users.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:`count`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`)`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` picked\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) })`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` .`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:`set`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`onSelectionChange`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { users `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`in`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`\\\\(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`users.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:`count`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`)`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` selected\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) })`})]}),`\n`]})})})})]}),`\n`,_jsxs(_components.p,{children:[`In a selection mode a tap selects or deselects and does nothing else — `,_jsx(_components.code,{children:`onItemClick`}),` is not\ncalled. In `,_jsx(_components.code,{children:`.multiple`}),` mode a tap toggles the row, with no limit. In `,_jsx(_components.code,{children:`.single`}),` mode a tap\nreplaces the selection, and a second tap on the selected row `,_jsx(_components.strong,{children:`keeps it selected`}),`: a\nsingle selection cannot be emptied by tapping.`]}),`\n`,_jsxs(Tabs,{children:[_jsx(Tab,{title:`SwiftUI`,id:`swiftui-15`,children:_jsxs(_components.p,{children:[`Once something is selected the navigation bar shows the count with a cross and a tick. The\ntick calls `,_jsx(_components.code,{children:`onSelection`}),` with the selected users and leaves the selection and the mode as\nthey are. The cross clears the selection; the mode stays on, so the next tap selects again.\nThe selection lives in the store, so it survives search, paging and refresh — but it is\n`,_jsx(_components.strong,{children:`cleared when the list leaves the screen`}),`, for example when you push a screen on top of\nit.`]})}),_jsxs(Tab,{title:`UIKit`,id:`uikit-15`,children:[_jsxs(_components.p,{children:[`Once something is selected the navigation bar shows a cross with the number selected beside\nit, and a tick. The title stays. The tick calls `,_jsx(_components.code,{children:`onSelection`}),` and `,_jsx(_components.code,{children:`onSelectedItemProceed`}),`\nwith the selected users and leaves the selection and `,_jsx(_components.code,{children:`selectionMode`}),` as they are. The cross\nclears the selection; the mode stays on, so the next tap selects again. Changing\n`,_jsx(_components.code,{children:`selectionMode`}),` keeps the selection. It lives in the store, so it survives search, paging\nand refresh — but it is `,_jsx(_components.strong,{children:`cleared when the screen disappears`}),`, for example when you push a\nscreen on top of it.`]}),_jsxs(_components.p,{children:[_jsx(_components.code,{children:`getSelectedUsers()`}),` reads the selection at any time, `,_jsx(_components.code,{children:`selectUser(_:mode:)`}),` selects by the\nrules above, and `,_jsx(_components.code,{children:`clearSelection()`}),` empties it.`]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`store-access`,children:`Store Access`}),`\n`,_jsxs(Tabs,{children:[_jsxs(Tab,{title:`SwiftUI`,id:`swiftui-16`,children:[_jsx(CodeBlock,{filename:``,numberOfLines:`7`,language:`swift`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`swift`,children:_jsxs(_components.code,{language:`swift`,numberOfLines:`7`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`@State`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` private`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` var`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` store `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` UsersStore`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`()`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`CometChatUsers`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` store`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: store,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` overflowMenu`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`AnyView`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`Button`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Reload\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) { `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:`_`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` store.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`refreshList`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`() }) },`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` onItemClick`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { user `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`in`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` openChat`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`with`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: user) }`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`]})})}),_jsxs(_components.p,{children:[_jsx(_components.code,{children:`UsersStore`}),` is the store behind the list. What it exposes:`]}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Member`}),_jsx(_components.th,{children:`Does`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`init(usersRequestBuilder:searchRequestBuilder:)`})}),_jsx(_components.td,{children:`a live store; the builders are kept as instances`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`init(seeded:selectedIDs:)`})}),_jsx(_components.td,{children:`a store pinned to a state, with no session — every fetch, change and selection call is a no-op`})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`state`}),`, `,_jsx(_components.code,{children:`isSearching`}),`, `,_jsx(_components.code,{children:`connectionNotice`})]}),_jsx(_components.td,{children:`what the list draws`})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`onLoad`}),`, `,_jsx(_components.code,{children:`onEmpty`}),`, `,_jsx(_components.code,{children:`onError`}),`, `,_jsx(_components.code,{children:`onSelectionChange`})]}),_jsx(_components.td,{children:`the callbacks, settable on the store itself`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`fetchUsers()`})}),_jsx(_components.td,{children:`the next page — nothing while one is in flight or once a page came back empty`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`refreshList()`})}),_jsx(_components.td,{children:`the first page again, clearing the rows first; returns the request’s task`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`retry()`})}),_jsx(_components.td,{children:`what Retry does: the next page`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`search(_:)`})}),_jsxs(_components.td,{children:[`a search 300 ms later; `,_jsx(_components.code,{children:`nil`}),` or `,_jsx(_components.code,{children:`\"\"`}),` returns to the list at once`]})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`setUsersRequestBuilder(_:)`}),`, `,_jsx(_components.code,{children:`setSearchRequestBuilder(_:)`})]}),_jsx(_components.td,{children:`replace a builder; nothing is cleared or refetched`})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`selectedUsers`}),`, `,_jsx(_components.code,{children:`selectedIDs`}),`, `,_jsx(_components.code,{children:`isSelected(_:)`})]}),_jsx(_components.td,{children:`the selection, in the order it was picked`})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`select(_:mode:)`}),`, `,_jsx(_components.code,{children:`setSelection(_:)`}),`, `,_jsx(_components.code,{children:`clearSelection()`})]}),_jsx(_components.td,{children:`change the selection`})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`addItem`}),`, `,_jsx(_components.code,{children:`addItems`}),`, `,_jsx(_components.code,{children:`removeItem`}),`, `,_jsx(_components.code,{children:`removeItem(at:)`}),`, `,_jsx(_components.code,{children:`updateItem(_:matching:)`}),`, `,_jsx(_components.code,{children:`moveItemToTop`}),`, `,_jsx(_components.code,{children:`clearItems`}),`, `,_jsx(_components.code,{children:`batch`})]}),_jsx(_components.td,{children:`the list operations`})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`items`}),`, `,_jsx(_components.code,{children:`item(at:)`}),`, `,_jsx(_components.code,{children:`itemCount`})]}),_jsx(_components.td,{children:`read the rows`})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`addUserToTop`}),`, `,_jsx(_components.code,{children:`updateUser`}),`, `,_jsx(_components.code,{children:`moveUserToTop`}),`, `,_jsx(_components.code,{children:`removeUser`})]}),_jsx(_components.td,{children:`the view model’s own row changes`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`sdkUser(for:)`})}),_jsxs(_components.td,{children:[`the `,_jsx(_components.code,{children:`CometChatSDK.User`}),` behind a row’s id`]})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`attachView()`}),`, `,_jsx(_components.code,{children:`detachView()`})]}),_jsx(_components.td,{children:`what the list calls on appearing and disappearing`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`scrollToTopToken`})}),_jsx(_components.td,{children:`bumped when a user moves to the top or a refresh lands; the list does not act on it, your view can`})]})]})]}),_jsx(Warning,{children:_jsxs(_components.p,{children:[`The list operations — `,_jsx(_components.code,{children:`addItem`}),`, `,_jsx(_components.code,{children:`addItems`}),`, `,_jsx(_components.code,{children:`removeItem`}),`, `,_jsx(_components.code,{children:`updateItem`}),`, `,_jsx(_components.code,{children:`moveItemToTop`}),`,\n`,_jsx(_components.code,{children:`clearItems`}),`, `,_jsx(_components.code,{children:`batch`}),` — and `,_jsx(_components.code,{children:`addUserToTop`}),` `,_jsx(_components.strong,{children:`never change what the screen is showing`}),`.\nA user added while the empty state is up stays hidden behind it; removing the last row\nwith `,_jsx(_components.code,{children:`removeItem`}),` leaves a blank list. `,_jsx(_components.code,{children:`removeUser`}),` is the one that shows the empty state\nwhen the last row goes.`]})})]}),_jsx(Tab,{title:`UIKit`,id:`uikit-16`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`usersStore`}),` is the `,_jsx(_components.code,{children:`UsersStore`}),` the screen draws — the same type the SwiftUI toolkit uses.\nIt exposes `,_jsx(_components.code,{children:`fetchUsers()`}),`, `,_jsx(_components.code,{children:`refreshList()`}),`, `,_jsx(_components.code,{children:`retry()`}),`, `,_jsx(_components.code,{children:`search(_:)`}),`,\n`,_jsx(_components.code,{children:`setUsersRequestBuilder(_:)`}),`, `,_jsx(_components.code,{children:`setSearchRequestBuilder(_:)`}),`, the selection\n(`,_jsx(_components.code,{children:`selectedUsers`}),`, `,_jsx(_components.code,{children:`selectedIDs`}),`, `,_jsx(_components.code,{children:`select(_:mode:)`}),`, `,_jsx(_components.code,{children:`setSelection(_:)`}),`, `,_jsx(_components.code,{children:`clearSelection()`}),`),\nthe list operations, `,_jsx(_components.code,{children:`sdkUser(for:)`}),` and `,_jsx(_components.code,{children:`scrollToTopToken`}),`, which is bumped when a user\nmoves to the top or a refresh lands — the table does not act on it.`]})})]}),`\n`,_jsx(Heading,{level:`3`,id:`subclassing`,children:`Subclassing`}),`\n`,_jsxs(Tabs,{children:[_jsx(Tab,{title:`SwiftUI`,id:`swiftui-17`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`CometChatUsers`}),` is a `,_jsx(_components.code,{children:`View`}),` struct. Customise it with its slots, modifiers and style.`]})}),_jsxs(Tab,{title:`UIKit`,id:`uikit-17`,children:[_jsxs(_components.p,{children:[`These override points are `,_jsx(_components.code,{children:`open`}),`: `,_jsx(_components.code,{children:`defaultSetup()`}),`, `,_jsx(_components.code,{children:`setupStyle()`}),`, `,_jsx(_components.code,{children:`styleSearchBar()`}),`,\n`,_jsx(_components.code,{children:`registerCells()`}),`, `,_jsx(_components.code,{children:`fetchData()`}),`, `,_jsx(_components.code,{children:`reloadData()`}),`, `,_jsx(_components.code,{children:`showEmptyView()`}),`, `,_jsx(_components.code,{children:`showErrorView()`}),`,\n`,_jsx(_components.code,{children:`showLoadingView()`}),`, `,_jsx(_components.code,{children:`onSearch(text:)`}),`, `,_jsx(_components.code,{children:`onRefreshControlTriggered()`}),`, `,_jsx(_components.code,{children:`tickButtonTapped()`}),`,\n`,_jsx(_components.code,{children:`crossButtonTapped()`}),`, `,_jsx(_components.code,{children:`updateNavigationBarTitleWithCount(_:)`}),` and the table view’s\ndata-source and delegate methods — `,_jsx(_components.code,{children:`tableView(_:heightForHeaderInSection:)`}),` included.\n`,_jsx(_components.code,{children:`configureOptions(for:indexPath:)`}),` returns a row’s options, and\n`,_jsx(_components.code,{children:`configureMenu(for:indexPath:)`}),` builds its long-press menu from them.`]}),_jsx(CodeBlock,{filename:``,numberOfLines:`17`,language:`swift`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`swift`,children:_jsxs(_components.code,{language:`swift`,numberOfLines:`17`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`final`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` class`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` AddMembersViewController`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`CometChatUsers `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` override`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` func`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` defaultSetup`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`() {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` hideSearch `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` true`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` super`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`defaultSetup`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`()`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` selectionMode `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` .`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`multiple`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` hideUserStatus `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` true`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` override`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` func`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` updateNavigationBarTitleWithCount`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`_`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` count`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`Int`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` navigationItem.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`title`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` count `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`==`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 0`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` ?`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Add members\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` :`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`\\\\(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`count`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`)`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` selected\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` override`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` func`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` tickButtonTapped`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`() {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` super`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`tickButtonTapped`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`()`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` navigationController`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`?`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`popViewController`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`animated`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]})]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`style`,children:`Style`}),`\n`,_jsxs(Tabs,{children:[_jsxs(Tab,{title:`SwiftUI`,id:`swiftui-18`,children:[_jsx(CodeBlock,{filename:``,numberOfLines:`8`,language:`swift`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`swift`,children:_jsxs(_components.code,{language:`swift`,numberOfLines:`8`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`var`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` style `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` CometChatUsersStyle`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`()`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`style.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`backgroundColor`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` Color`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`systemGroupedBackground`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`style.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`stickyHeaderTextColor`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` .`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`indigo`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`style.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`itemStyle`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` UserListItemStyle`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`titleColor`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: .`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`indigo`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`avatarStyle`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: .`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`init`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`size`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`48`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`),`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` statusIndicatorColor`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: .`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`mint`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`style.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`retryButtonCornerRadius`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 20`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`CometChatUsers`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`style`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: style)`})]}),`\n`]})})}),_jsxs(_components.p,{children:[`Unset properties fall through to the theme, so a style carries only what you change, and\nan app-wide `,_jsx(_components.code,{children:`.cometChatTheme(_:)`}),` reaches everything a style leaves alone.`]}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Property`}),_jsx(_components.th,{children:`Styles`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`backgroundColor`})}),_jsx(_components.td,{children:`the screen, the pinned headers and the presence dot’s ring`})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`navigationBarBackgroundColor`}),`, `,_jsx(_components.code,{children:`navigationBarItemsTintColor`})]}),_jsx(_components.td,{children:`the navigation bar and its buttons`})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`backIcon`}),`, `,_jsx(_components.code,{children:`backIconTint`})]}),_jsxs(_components.td,{children:[`the back button, when shown; its tint is `,_jsx(_components.code,{children:`navigationBarItemsTintColor`}),` unless set`]})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`stickyHeaderTextColor`}),`, `,_jsx(_components.code,{children:`stickyHeaderFont`}),`, `,_jsx(_components.code,{children:`stickyHeaderBackgroundColor`})]}),_jsxs(_components.td,{children:[`the letter headers — pinned, the letter alone; no fill unless `,_jsx(_components.code,{children:`stickyHeaderBackgroundColor`}),` is set`]})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`itemStyle.titleColor`}),` / `,_jsx(_components.code,{children:`titleFont`})]}),_jsx(_components.td,{children:`the name`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`itemStyle.avatarStyle`})}),_jsx(_components.td,{children:`the avatar’s size, colours and font`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`itemStyle.statusIndicatorColor`})}),_jsx(_components.td,{children:`the presence dot`})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`itemStyle.checkboxSelectedColor`}),`, `,_jsx(_components.code,{children:`checkboxStrokeColor`})]}),_jsx(_components.td,{children:`the checkbox glyphs`})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`itemStyle.checkBox…`}),` (stroke, corner, background, icon)`]}),_jsx(_components.td,{children:`draws the checkbox from parts instead of the glyphs`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`itemStyle.selectedBackgroundColor`})}),_jsx(_components.td,{children:`a selected row’s fill`})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`itemStyle.separatorColor`}),` / `,_jsx(_components.code,{children:`separatorHeight`})]}),_jsxs(_components.td,{children:[`the separator, shown with `,_jsx(_components.code,{children:`hideSeparator: false`})]})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`emptyState…`}),`, `,_jsx(_components.code,{children:`errorState…`}),`, `,_jsx(_components.code,{children:`retryButton…`})]}),_jsx(_components.td,{children:`the state views and Retry`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`loadingStateSurfaceColor`})}),_jsx(_components.td,{children:`the shimmer`})]})]})]}),_jsx(Note,{children:_jsxs(_components.p,{children:[`On iOS 26 the navigation bar is Liquid Glass and the Kit leaves it to the system. Below\niOS 26, or with Reduce Transparency on, the bar is filled with the list’s background.\nSetting `,_jsx(_components.code,{children:`navigationBarBackgroundColor`}),` fills it everywhere.`]})}),_jsxs(_components.p,{children:[`The title, the search field and the selection bar’s items belong to the system’s\nnavigation bar. `,_jsx(_components.code,{children:`titleColor`}),`, `,_jsx(_components.code,{children:`titleFont`}),`, the `,_jsx(_components.code,{children:`search…`}),` and `,_jsx(_components.code,{children:`toolbarSeparator…`}),`\nproperties and `,_jsx(_components.code,{children:`popupMenuStyle`}),` have no effect. The selection bar takes\n`,_jsx(_components.code,{children:`discardSelectionIcon`}),`, `,_jsx(_components.code,{children:`submitSelectionIcon`}),`, their tints and `,_jsx(_components.code,{children:`selectionCountTextColor`}),` /\n`,_jsx(_components.code,{children:`Font`}),`; `,_jsx(_components.code,{children:`strokeColor`}),`, `,_jsx(_components.code,{children:`strokeWidth`}),` and `,_jsx(_components.code,{children:`cornerRadius`}),` draw a border and rounding around\nthe list. The stock row has no subtitle, so `,_jsx(_components.code,{children:`itemStyle.subtitleColor`}),` / `,_jsx(_components.code,{children:`subtitleFont`}),`\nstyle nothing either; a `,_jsx(_components.code,{children:`subtitleView`}),` styles itself.`]})]}),_jsxs(Tab,{title:`UIKit`,id:`uikit-18`,children:[_jsx(CodeBlock,{filename:``,numberOfLines:`7`,language:`swift`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`swift`,children:_jsxs(_components.code,{language:`swift`,numberOfLines:`7`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`let`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` style `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` UsersStyle`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`()`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`style.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`headerTitleColor`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` .`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`secondaryLabel`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`style.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`listItemTitleFont`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` .`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`preferredFont`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`forTextStyle`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: .`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`headline`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`style.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`listItemSelectedBackground`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` UIColor.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`systemTeal`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`withAlphaComponent`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0.15`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`style.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`retryButtonCornerRadius`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 20`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`let`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` users `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` CometChatUsers`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`().`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:`set`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`style`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: style)`})]}),`\n`]})})}),_jsxs(_components.p,{children:[`Every `,_jsx(_components.code,{children:`UsersStyle`}),` property is optional and resolved from the theme when the screen draws.\nBesides the row, header and search properties it has `,_jsx(_components.code,{children:`backIcon`}),`, `,_jsx(_components.code,{children:`backIconTint`}),`,\n`,_jsx(_components.code,{children:`discardSelectionIcon`}),`, `,_jsx(_components.code,{children:`discardSelectionIconTint`}),`, `,_jsx(_components.code,{children:`submitSelectionIcon`}),`,\n`,_jsx(_components.code,{children:`submitSelectionIconTint`}),`, `,_jsx(_components.code,{children:`stickyTitleBackgroundColor`}),`, `,_jsx(_components.code,{children:`separatorHeight`}),` and\n`,_jsx(_components.code,{children:`shimmerColor`}),`. The six `,_jsx(_components.code,{children:`retryButton…`}),` properties style the Retry button.\n`,_jsx(_components.code,{children:`listItemSubTitleTextColor`}),` and `,_jsx(_components.code,{children:`listItemSubTitleFont`}),` style nothing: the row has no\nsubtitle of its own.`]}),_jsxs(_components.p,{children:[_jsx(_components.code,{children:`CometChatUsers.style`}),`, `,_jsx(_components.code,{children:`CometChatUsers.avatarStyle`}),` and\n`,_jsx(_components.code,{children:`CometChatUsers.statusIndicatorStyle`}),` are the defaults every new instance copies:`]}),_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`swift`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`swift`,children:_jsxs(_components.code,{language:`swift`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`CometChatUsers.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`style`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`headerTitleColor`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` .`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`systemIndigo`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`CometChatUsers.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`avatarStyle`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`cornerRadius`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 8`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`CometChatUsers.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`statusIndicatorStyle`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`backgroundColor`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` .`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`systemMint`})]}),`\n`]})})}),_jsxs(_components.p,{children:[`Change a screen’s `,_jsx(_components.code,{children:`style`}),` after it has loaded and call `,_jsx(_components.code,{children:`refreshStyle()`}),` — `,_jsx(_components.code,{children:`set(style:)`}),` does\nthat for you.`]}),_jsx(Note,{children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`navigationBarTintColor`}),` fills the navigation bar. Left unset, the bar is filled with the\nlist’s background — except on iOS 26, where the bar is Liquid Glass and the Kit leaves it\nto the system.`]})})]})]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`next-steps`,children:`Next Steps`}),`\n`,_jsxs(CardGroup,{cols:2,children:[_jsx(Card,{title:`Groups`,icon:`users`,href:`/ui-kit/ios/v6/groups`,children:_jsx(_components.p,{children:`The groups list, built the same way`})}),_jsx(Card,{title:`New Chat`,icon:`comments`,href:`/ui-kit/ios/v6/guide-new-chat`,children:_jsx(_components.p,{children:`Start conversations from users and groups`})}),_jsx(Card,{title:`Theming`,icon:`palette`,href:`/ui-kit/ios/v6/theming`,children:_jsx(_components.p,{children:`Colour, typography and shape tokens`})}),_jsx(Card,{title:`Component Styling`,icon:`paintbrush`,href:`/ui-kit/ios/v6/component-styling`,children:_jsx(_components.p,{children:`Style every component`})})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Users","description":"Alphabetical directory of the users in your app, with sticky letter headers, live presence, live search, filters, selection and item callbacks.","href":"/ui-kit/ios/v6/users"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Where It Fits","slug":"where-it-fits","depth":2,"children":[]},{"title":"Quick Start","slug":"quick-start","depth":2,"children":[]},{"title":"What It Looks Like","slug":"what-it-looks-like","depth":2,"children":[]},{"title":"Filtering Users","slug":"filtering-users","depth":2,"children":[{"title":"Filter Recipes","slug":"filter-recipes","depth":3,"children":[]},{"title":"Search","slug":"search","depth":3,"children":[]}]},{"title":"Actions and Events","slug":"actions-and-events","depth":2,"children":[{"title":"Callback Methods","slug":"callback-methods","depth":3,"children":[]},{"title":"Global Events","slug":"global-events","depth":3,"children":[]},{"title":"SDK Events (Real-Time, Automatic)","slug":"sdk-events-real-time-automatic","depth":3,"children":[]}]},{"title":"Functionality","slug":"functionality","depth":2,"children":[]},{"title":"Custom View Slots","slug":"custom-view-slots","depth":2,"children":[]},{"title":"Menu Options","slug":"menu-options","depth":2,"children":[]},{"title":"Common Patterns","slug":"common-patterns","depth":2,"children":[{"title":"Open a chat on tap","slug":"open-a-chat-on-tap","depth":3,"children":[]},{"title":"Friends only, with your own empty state","slug":"friends-only-with-your-own-empty-state","depth":3,"children":[]},{"title":"Scope buttons under the search field","slug":"scope-buttons-under-the-search-field","depth":3,"children":[]},{"title":"Preview without credentials","slug":"preview-without-credentials","depth":3,"children":[]}]},{"title":"Advanced Methods","slug":"advanced-methods","depth":2,"children":[{"title":"Selection","slug":"selection","depth":3,"children":[]},{"title":"Store Access","slug":"store-access","depth":3,"children":[]},{"title":"Subclassing","slug":"subclassing","depth":3,"children":[]}]},{"title":"Style","slug":"style","depth":2,"children":[]},{"title":"Next Steps","slug":"next-steps","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/docs/_mintlify/custom/cometchat-22654f5b/36ac8063d2fb5fe5/assets/consent.js","/docs/_mintlify/custom/cometchat-22654f5b/5c3dfb209223f9f6/assets/feedback-support-ticket.js"],"subdomain":"cometchat-22654f5b","siteName":"CometChat Docs","title":"Users - CometChat Docs","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{"v6":{"href":"/ui-kit/ios/v6/users","matchLevel":0},"v5":{"href":"/ui-kit/ios/overview","matchLevel":2},"v4":{"href":"/ui-kit/ios/v4/users","matchLevel":1},"v3":{"href":"/ui-kit/ios/v3/overview","matchLevel":2},"v2":{"href":"/ui-kit/ios/v2/overview","matchLevel":2},"v7":{"href":"/ui-kit/react/overview","matchLevel":4},"v6":{"href":"/ui-kit/react/v6/users","matchLevel":1},"v5":{"href":"/ui-kit/react/v5/overview","matchLevel":4},"v4":{"href":"/ui-kit/react/v4/overview","matchLevel":4},"v3":{"href":"/ui-kit/react/v3/overview","matchLevel":4},"v2":{"href":"/ui-kit/react/v2/overview","matchLevel":4},"v5":{"href":"/ui-kit/react-native/overview","matchLevel":4},"v4":{"href":"/ui-kit/react-native/v4/overview","matchLevel":4},"v3":{"href":"/ui-kit/react-native/v3/overview","matchLevel":4},"v2":{"href":"/ui-kit/react-native/v2/overview","matchLevel":4},"v6":{"href":"/ui-kit/android/overview","matchLevel":4},"v5":{"href":"/ui-kit/android/v5/overview","matchLevel":4},"v4":{"href":"/ui-kit/android/v4/overview","matchLevel":4},"v3":{"href":"/ui-kit/android/v3/overview","matchLevel":4},"v2":{"href":"/ui-kit/android/v2/overview","matchLevel":4},"v6":{"href":"/ui-kit/flutter/overview","matchLevel":4},"v5":{"href":"/ui-kit/flutter/v5/overview","matchLevel":4},"v4":{"href":"/ui-kit/flutter/v4/overview","matchLevel":4},"v5":{"href":"/ui-kit/angular/overview","matchLevel":4},"v4":{"href":"/ui-kit/angular/v4/overview","matchLevel":4},"v3":{"href":"/ui-kit/angular/3.0/overview","matchLevel":4},"v2":{"href":"/ui-kit/angular/2.0/overview","matchLevel":4},"v4":{"href":"/ui-kit/vue/overview","matchLevel":4},"v3":{"href":"/ui-kit/vue/3.0/overview","matchLevel":4},"v2":{"href":"/ui-kit/vue/2.0/overview","matchLevel":4},"v4":{"href":"/sdk/javascript/overview","matchLevel":4},"v3":{"href":"/sdk/javascript/3.0/overview","matchLevel":4},"v2":{"href":"/sdk/javascript/2.0/overview","matchLevel":4},"v4":{"href":"/sdk/react-native/overview","matchLevel":4},"v3":{"href":"/sdk/react-native/3.0/overview","matchLevel":4},"v2":{"href":"/sdk/react-native/2.0/overview","matchLevel":4},"v4":{"href":"/sdk/ios/overview","matchLevel":4},"v3":{"href":"/sdk/ios/3.0/overview","matchLevel":4},"v2":{"href":"/sdk/ios/2.0/overview","matchLevel":4},"v5":{"href":"/sdk/android/overview","matchLevel":4},"v4":{"href":"/sdk/android/v4/overview","matchLevel":4},"v3":{"href":"/sdk/android/3.0/overview","matchLevel":4},"v2":{"href":"/sdk/android/2.0/overview","matchLevel":4},"v5":{"href":"/sdk/flutter/overview","matchLevel":4},"v4":{"href":"/sdk/flutter/v4/overview","matchLevel":4},"v3":{"href":"/sdk/flutter/3.0/overview","matchLevel":4},"v5":{"href":"/calls/javascript/overview","matchLevel":4},"v4":{"href":"/calls/v4/javascript/overview","matchLevel":4},"v5":{"href":"/calls/react-native/overview","matchLevel":4},"v4":{"href":"/calls/v4/react-native/overview","matchLevel":4},"v5":{"href":"/calls/ios/overview","matchLevel":4},"v4":{"href":"/calls/v4/ios/overview","matchLevel":4},"v5":{"href":"/calls/android/overview","matchLevel":4},"v4":{"href":"/calls/v4/android/overview","matchLevel":4},"v5":{"href":"/calls/flutter/overview","matchLevel":4},"v4":{"href":"/calls/v4/flutter/overview","matchLevel":4}},"firstHrefInLanguage":{}},"lastModified":"2026-12-02T14:13:00.798Z","originalFileLocation":"ui-kit/ios/v6/users.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Alphabetical directory of the users in your app, with sticky letter headers, live presence, live search, filters, selection and item callbacks.\">\u003cmeta data-mint-head name=\"application-name\" content=\"CometChat Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/cometchat-22654f5b/9HQD26P0kBVs3M5H/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/docs/mintlify-assets/_mintlify/favicons/cometchat-22654f5b/9HQD26P0kBVs3M5H/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/cometchat-22654f5b/9HQD26P0kBVs3M5H/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/cometchat-22654f5b/9HQD26P0kBVs3M5H/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/cometchat-22654f5b/9HQD26P0kBVs3M5H/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/cometchat-22654f5b/9HQD26P0kBVs3M5H/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/cometchat-22654f5b/9HQD26P0kBVs3M5H/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/cometchat-22654f5b/9HQD26P0kBVs3M5H/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/cometchat-22654f5b/9HQD26P0kBVs3M5H/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Users - CometChat Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Alphabetical directory of the users in your app, with sticky letter headers, live presence, live search, filters, selection and item callbacks.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"CometChat Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://www.cometchat.com/docs/ui-kit/ios/v6/users\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://cometchat-22654f5b.mintlify.site/docs/_mintlify/api/og/v2?division=Components\u0026amp;title=Users\u0026amp;description=Alphabetical+directory+of+the+users+in+your+app%2C+with+sticky+letter+headers%2C+live+presence%2C+live+search%2C+filters%2C+selection+and+item+callbacks.\u0026amp;theme=9023e5a089383a08d2dd3ea6\u0026amp;signature=c8057f8e19fe2eaadd3ed06a0c72f67866395a50fe8c3a64614ee53304cd9be3\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Users - CometChat Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Alphabetical directory of the users in your app, with sticky letter headers, live presence, live search, filters, selection and item callbacks.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://cometchat-22654f5b.mintlify.site/docs/_mintlify/api/og/v2?division=Components\u0026amp;title=Users\u0026amp;description=Alphabetical+directory+of+the+users+in+your+app%2C+with+sticky+letter+headers%2C+live+presence%2C+live+search%2C+filters%2C+selection+and+item+callbacks.\u0026amp;theme=9023e5a089383a08d2dd3ea6\u0026amp;signature=c8057f8e19fe2eaadd3ed06a0c72f67866395a50fe8c3a64614ee53304cd9be3\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/docs/mintlify-assets/_mintlify/favicons/cometchat-22654f5b/9HQD26P0kBVs3M5H/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"CometChat Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#6851D6\">\u003cmeta data-mint-head name=\"charset\" content=\"UTF-8\">\u003cmeta data-mint-head name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\u003cmeta data-mint-head name=\"language\" content=\"en\">\u003clink data-mint-head rel=\"canonical\" href=\"https://www.cometchat.com/docs/ui-kit/ios/v6/users\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/docs/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/ui-kit/ios/v6/users.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://www.cometchat.com/#organization\",\"name\":\"CometChat Docs\",\"url\":\"https://www.cometchat.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/cometchat-22654f5b/rnJE5Ok_8RIDEPUR/logo/light.svg?fit=max\u0026auto=format\u0026n=rnJE5Ok_8RIDEPUR\u0026q=85\u0026s=461a8ced4bf934b4f3a2770f090f2d3c\"}},{\"@type\":\"WebSite\",\"@id\":\"https://www.cometchat.com/docs#website\",\"name\":\"CometChat Docs\",\"url\":\"https://www.cometchat.com/docs\",\"publisher\":{\"@id\":\"https://www.cometchat.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://www.cometchat.com/docs/ui-kit/ios/v6/users#webpage\",\"url\":\"https://www.cometchat.com/docs/ui-kit/ios/v6/users\",\"name\":\"Users\",\"description\":\"Alphabetical directory of the users in your app, with sticky letter headers, live presence, live search, filters, selection and item callbacks.\",\"dateModified\":\"2026-12-02T14:13:00.798Z\",\"isPartOf\":{\"@id\":\"https://www.cometchat.com/docs#website\"},\"breadcrumb\":{\"@id\":\"https://www.cometchat.com/docs/ui-kit/ios/v6/users#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://www.cometchat.com/docs/ui-kit/ios/v6/users#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\" \",\"item\":\"https://www.cometchat.com/docs/ui-kit/ios/v6/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Components\",\"item\":\"https://www.cometchat.com/docs/ui-kit/ios/v6/components-overview\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Users\",\"item\":\"https://www.cometchat.com/docs/ui-kit/ios/v6/users\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://www.cometchat.com/docs/ui-kit/ios/v6/users#article\",\"headline\":\"Users\",\"name\":\"Users\",\"description\":\"Alphabetical directory of the users in your app, with sticky letter headers, live presence, live search, filters, selection and item callbacks.\",\"url\":\"https://www.cometchat.com/docs/ui-kit/ios/v6/users\",\"mainEntityOfPage\":{\"@id\":\"https://www.cometchat.com/docs/ui-kit/ios/v6/users#webpage\"},\"dateModified\":\"2026-12-02T14:13:00.798Z\",\"publisher\":{\"@id\":\"https://www.cometchat.com/#organization\"},\"isPartOf\":{\"@id\":\"https://www.cometchat.com/docs#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"CometChat Docs\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"CometChat Docs\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/docs/ui-kit/ios/v6/users.md","siteName":"CometChat Docs","nav":{"global":null,"products":[{"product":"Home","pages":[{"title":"Home","href":""}]},{"product":"Home","hidden":true,"pages":[{"title":"Home","href":"/on-premise-deployment/docker/overview","hidden":true}]},{"product":"Chat \u0026 Messaging","tabs":[{"tab":"Chat \u0026 Messaging","pages":[{"title":"Chat \u0026 Messaging","href":"/chat-call"}]},{"tab":"Platform","pages":[{"title":"Platform","href":"/fundamentals/overview"}]},{"tab":"Widget Builder","dropdowns":[{"dropdown":"HTML","icon":"https://mintlify.s3.us-west-1.amazonaws.com/cometchat-22654f5b/images/icons/html5.svg","pages":[{"title":"CometChat Widget Builder For HTML","sidebarTitle":"Overview","href":"/widget/html/overview"},{"title":"Add CometChat Widget to a Static HTML Website","sidebarTitle":"Integration","href":"/widget/html/integration"},{"title":"Advanced CometChat Widget Setup for Static HTML","sidebarTitle":"Advanced Setup","href":"/widget/html/advanced"}]},{"dropdown":"WordPress","icon":"https://mintlify.s3.us-west-1.amazonaws.com/cometchat-22654f5b/images/icons/wordpress.svg","pages":[{"title":"CometChat Widget Builder For WordPress","sidebarTitle":"Overview","href":"/widget/wordpress/overview"},{"title":"Add CometChat Widget to WordPress via Plugin","sidebarTitle":"Integration","href":"/widget/wordpress/integration"}]},{"dropdown":"Shopify","icon":"https://mintlify.s3.us-west-1.amazonaws.com/cometchat-22654f5b/images/icons/shopify.svg","pages":[{"title":"CometChat Widget Builder For Shopify","sidebarTitle":"Overview","href":"/widget/shopify/overview"},{"title":"Add CometChat Widget to Shopify","sidebarTitle":"Integration","href":"/widget/shopify/integration"}]},{"dropdown":"Squarespace","icon":"https://mintlify.s3.us-west-1.amazonaws.com/cometchat-22654f5b/images/icons/squarespace.svg","pages":[{"title":"CometChat Widget Builder For Squarespace","sidebarTitle":"Overview","href":"/widget/squarespace/overview"},{"title":"Add CometChat Widget to Squarespace","sidebarTitle":"Integration","href":"/widget/squarespace/integration"}]},{"dropdown":"Wix","icon":"https://mintlify.s3.us-west-1.amazonaws.com/cometchat-22654f5b/images/icons/wix.svg","pages":[{"title":"CometChat Widget Builder For Wix","sidebarTitle":"Overview","href":"/widget/wix/overview"},{"title":"Add CometChat Widget to Wix","sidebarTitle":"Integration","href":"/widget/wix/integration"}]},{"dropdown":"Webflow","icon":"https://mintlify.s3.us-west-1.amazonaws.com/cometchat-22654f5b/images/icons/webflow.svg","pages":[{"title":"CometChat Widget Builder For Webflow","sidebarTitle":"Overview","href":"/widget/webflow/overview"},{"title":"Add CometChat Widget to Webflow","sidebarTitle":"Integration","href":"/widget/webflow/integration"}]}]},{"tab":"UI Kit Builder","dropdowns":[{"dropdown":"React","icon":"https://mintlify.s3.us-west-1.amazonaws.com/cometchat-22654f5b/images/icons/react.svg","groups":[{"group":" ","pages":[{"title":"CometChat UI Kit Builder For React","sidebarTitle":"Overview","href":"/chat-builder/react/overview"},{"title":"UI Kit Builder Integration","sidebarTitle":"Integration","href":"/chat-builder/react/integration"}]},{"group":"Reference","pages":[{"title":"UI Kit Builder Settings","sidebarTitle":"Builder Settings","href":"/chat-builder/react/builder-settings"},{"title":"Directory Structure","sidebarTitle":"Directory Structure","href":"/chat-builder/react/builder-dir-structure"},{"title":"Customizing Your UI Kit Builder","sidebarTitle":"Customizations","href":"/chat-builder/react/builder-customisations"}]}]},{"dropdown":"Next.js","icon":"https://mintlify.s3.us-west-1.amazonaws.com/cometchat-22654f5b/images/icons/nextjs.svg","groups":[{"group":" ","pages":[{"title":"CometChat UI Kit Builder For Next.js","sidebarTitle":"Overview","href":"/chat-builder/nextjs/overview"},{"title":"UI Kit Builder Integration","sidebarTitle":"Integration","href":"/chat-builder/nextjs/integration"}]},{"group":"Reference","pages":[{"title":"UI Kit Builder Settings","sidebarTitle":"Builder Settings","href":"/chat-builder/nextjs/builder-settings"},{"title":"Directory Structure","sidebarTitle":"Directory Structure","href":"/chat-builder/nextjs/builder-dir-structure"},{"title":"Customizing Your UI Kit Builder","sidebarTitle":"Customizations","href":"/chat-builder/nextjs/builder-customisations"}]}]},{"dropdown":"React Router","icon":"https://mintlify.s3.us-west-1.amazonaws.com/cometchat-22654f5b/images/icons/react-router.svg","groups":[{"group":" ","pages":[{"title":"CometChat UI Kit Builder For React Router","sidebarTitle":"Overview","href":"/chat-builder/react-router/overview"},{"title":"UI Kit Builder Integration","sidebarTitle":"Integration","href":"/chat-builder/react-router/integration"}]},{"group":"Reference","pages":[{"title":"UI Kit Builder Settings","sidebarTitle":"Builder Settings","href":"/chat-builder/react-router/builder-settings"},{"title":"Directory Structure","sidebarTitle":"Directory Structure","href":"/chat-builder/react-router/builder-dir-structure"},{"title":"Customizing Your UI Kit Builder","sidebarTitle":"Customizations","href":"/chat-builder/react-router/builder-customisations"}]}]},{"dropdown":"Angular","icon":"https://mintlify.s3.us-west-1.amazonaws.com/cometchat-22654f5b/images/icons/angular.svg","groups":[{"group":" ","pages":[{"title":"CometChat UI Kit Builder For Angular","sidebarTitle":"Overview","href":"/chat-builder/angular/overview"},{"title":"UI Kit Builder Integration","sidebarTitle":"Integration","href":"/chat-builder/angular/integration"}]},{"group":"Reference","pages":[{"title":"UI Kit Builder Settings","href":"/chat-builder/angular/builder-settings"},{"title":"Directory Structure","sidebarTitle":"Directory Structure","href":"/chat-builder/angular/builder-dir-structure"},{"title":"Customizing Your UI Kit Builder","sidebarTitle":"Customizations","href":"/chat-builder/angular/builder-customisations"}]}]}]},{"tab":"UI Kits","dropdowns":[{"dropdown":"React","icon":"https://mintlify.s3.us-west-1.amazonaws.com/cometchat-22654f5b/images/icons/react.svg","versions":[{"version":"v7","default":true,"groups":[{"group":" ","pages":[{"title":"React UI Kit","sidebarTitle":"Overview","href":"/ui-kit/react/overview"},{"group":"Getting Started","pages":[{"group":"React.js","pages":[{"title":"React.js Integration","sidebarTitle":"Integration","href":"/ui-kit/react/integration-react"},{"title":"Conversation List + Message View","sidebarTitle":"Conversation List + Message View","href":"/ui-kit/react/react-conversation"},{"title":"One-to-One / Group Chat","sidebarTitle":"One-to-One / Group Chat","href":"/ui-kit/react/react-one-to-one-chat"},{"title":"Tab-Based Chat","sidebarTitle":"Tab-Based Chat","href":"/ui-kit/react/react-tab-based-chat"}]},{"group":"Next.js","pages":[{"title":"Next.js Integration","sidebarTitle":"Integration","href":"/ui-kit/react/integration-nextjs"},{"title":"Conversation List + Message View","sidebarTitle":"Conversation List + Message View","href":"/ui-kit/react/next-conversation"},{"title":"One-to-One / Group Chat","sidebarTitle":"One-to-One / Group Chat","href":"/ui-kit/react/next-one-to-one-chat"},{"title":"Tab-Based Chat","sidebarTitle":"Tab-Based Chat","href":"/ui-kit/react/next-tab-based-chat"}]},{"group":"React Router","pages":[{"title":"React Router Integration","sidebarTitle":"Integration","href":"/ui-kit/react/integration-react-router"},{"title":"Conversation List + Message View","sidebarTitle":"Conversation List + Message View","href":"/ui-kit/react/react-router-conversation"},{"title":"One-to-One / Group Chat","sidebarTitle":"One-to-One / Group Chat","href":"/ui-kit/react/react-router-one-to-one-chat"},{"title":"Tab-Based Chat","sidebarTitle":"Tab-Based Chat","href":"/ui-kit/react/react-router-tab-based-chat"}]},{"group":"Astro","pages":[{"title":"Astro Integration","sidebarTitle":"Integration","href":"/ui-kit/react/integration-astro"},{"title":"Conversation List + Message View","sidebarTitle":"Conversation List + Message View","href":"/ui-kit/react/astro-conversation"},{"title":"One-to-One / Group Chat","sidebarTitle":"One-to-One / Group Chat","href":"/ui-kit/react/astro-one-to-one-chat"},{"title":"Tab-Based Chat","sidebarTitle":"Tab-Based Chat","href":"/ui-kit/react/astro-tab-based-chat"}]},{"title":"Calling Integration","href":"/ui-kit/react/calling-integration"}]},{"group":"Features","pages":[{"group":"Chat","pages":[{"title":"Core","href":"/ui-kit/react/core-features"},{"title":"Offline Support","sidebarTitle":"Offline Support","href":"/ui-kit/react/offline-support"},{"title":"Extensions","href":"/ui-kit/react/extensions"},{"title":"Smart Chat Features","href":"/ui-kit/react/ai-features"}]},{"title":"Call","href":"/ui-kit/react/call-features"},{"title":"Campaigns","href":"/ui-kit/react/campaigns"},{"title":"RTL Support","href":"/ui-kit/react/rtl-support"}]},{"group":"Components","pages":[{"title":"Overview","href":"/ui-kit/react/components-overview"},{"title":"Conversations","href":"/ui-kit/react/components/conversations"},{"title":"Users","href":"/ui-kit/react/components/users"},{"title":"Groups","href":"/ui-kit/react/components/groups"},{"title":"Group Members","href":"/ui-kit/react/components/group-members"},{"title":"Message Header","href":"/ui-kit/react/components/message-header"},{"title":"Message List","href":"/ui-kit/react/components/message-list"},{"title":"Message Composer","href":"/ui-kit/react/components/message-composer"},{"group":"Message Bubbles","pages":[{"title":"Message Bubble","href":"/ui-kit/react/components/message-bubble"},{"title":"Text Bubble","sidebarTitle":"Text Bubble","href":"/ui-kit/react/components/text-bubble"},{"title":"Image Bubble","sidebarTitle":"Image Bubble","href":"/ui-kit/react/components/image-bubble"},{"title":"Video Bubble","sidebarTitle":"Video Bubble","href":"/ui-kit/react/components/video-bubble"},{"title":"Audio Bubble","sidebarTitle":"Audio Bubble","href":"/ui-kit/react/components/audio-bubble"},{"title":"Voice Note Bubble","sidebarTitle":"Voice Note Bubble","href":"/ui-kit/react/components/voice-note-bubble"},{"title":"File Bubble","sidebarTitle":"File Bubble","href":"/ui-kit/react/components/file-bubble"},{"title":"Poll Bubble","sidebarTitle":"Poll Bubble","href":"/ui-kit/react/components/poll-bubble"},{"title":"Sticker Bubble","sidebarTitle":"Sticker Bubble","href":"/ui-kit/react/components/sticker-bubble"},{"title":"Collaborative Document Bubble","sidebarTitle":"Collaborative Document Bubble","href":"/ui-kit/react/components/collaborative-document-bubble"},{"title":"Collaborative Whiteboard Bubble","sidebarTitle":"Collaborative Whiteboard Bubble","href":"/ui-kit/react/components/collaborative-whiteboard-bubble"},{"title":"Card Bubble","sidebarTitle":"Card Bubble","href":"/ui-kit/react/components/card-bubble"},{"title":"Call Bubble","sidebarTitle":"Call Bubble","href":"/ui-kit/react/components/call-bubble"},{"title":"Call Action Bubble","sidebarTitle":"Call Action Bubble","href":"/ui-kit/react/components/call-action-bubble"},{"title":"Group Action Bubble","sidebarTitle":"Group Action Bubble","href":"/ui-kit/react/components/group-action-bubble"},{"title":"Delete Bubble","sidebarTitle":"Delete Bubble","href":"/ui-kit/react/components/delete-bubble"}]},{"title":"Thread Header","href":"/ui-kit/react/components/thread-header"},{"title":"Pinned Messages","sidebarTitle":"Pinned Messages","href":"/ui-kit/react/components/pinned-messages"},{"title":"Saved Messages","sidebarTitle":"Saved Messages","href":"/ui-kit/react/components/saved-messages"},{"title":"Message Information","href":"/ui-kit/react/components/message-information"},{"title":"Reactions","href":"/ui-kit/react/components/reactions"},{"title":"Reaction List","href":"/ui-kit/react/components/reaction-list"},{"title":"Flag Message Dialog","sidebarTitle":"Flag Message Dialog","href":"/ui-kit/react/components/flag-message-dialog"},{"title":"Call Buttons","href":"/ui-kit/react/components/call-buttons"},{"title":"Incoming Call","href":"/ui-kit/react/components/incoming-call"},{"title":"Outgoing Call","href":"/ui-kit/react/components/outgoing-call"},{"title":"Call Logs","href":"/ui-kit/react/components/call-logs"},{"title":"Search","href":"/ui-kit/react/components/search"},{"title":"AI Assistant Chat","href":"/ui-kit/react/components/ai-assistant-chat"},{"title":"Notification Feed","href":"/ui-kit/react/components/notification-feed"}]},{"group":"Plugins","pages":[{"title":"Plugins","sidebarTitle":"Overview","href":"/ui-kit/react/plugins/overview"},{"title":"Creating a Custom Plugin","sidebarTitle":"Custom Plugin","href":"/ui-kit/react/plugins/custom-plugin"},{"title":"Text Formatters","sidebarTitle":"Text Formatters","href":"/ui-kit/react/plugins/text-formatters"}]},{"group":"Architecture","pages":[{"title":"CometChatProvider","href":"/ui-kit/react/cometchat-provider"},{"title":"Event System","href":"/ui-kit/react/event-system"}]},{"group":"Customization","pages":[{"title":"Theming","href":"/ui-kit/react/theming"},{"title":"Color Resources","href":"/ui-kit/react/theme/color-resources"},{"title":"Message Bubble Styling","href":"/ui-kit/react/theme/message-bubble-styling"},{"title":"Localization","href":"/ui-kit/react/localization"},{"title":"Sound Manager","href":"/ui-kit/react/sound-manager"}]},{"group":"Guides","pages":[{"title":"Block/Unblock User","sidebarTitle":"Block/Unblock User","href":"/ui-kit/react/guide-block-unblock-user"},{"title":"Group Chat Setup","sidebarTitle":"Group Chat Setup","href":"/ui-kit/react/guide-group-chat-setup"},{"title":"Threaded Messages","sidebarTitle":"Threaded Messages","href":"/ui-kit/react/guide-threaded-messages"},{"title":"Pin \u0026 Save Messages","sidebarTitle":"Pin \u0026 Save Messages","href":"/ui-kit/react/guide-pin-and-save-messages"},{"title":"Custom Text Formatter","sidebarTitle":"Custom Text Formatter","href":"/ui-kit/react/guide-custom-text-formatter"},{"title":"Search Messages","sidebarTitle":"Search Messages","href":"/ui-kit/react/guide-search-messages"},{"title":"New Chat Creation","sidebarTitle":"New Chat Creation","href":"/ui-kit/react/guide-new-chat-creation"},{"title":"Message Privately","sidebarTitle":"Message Privately","href":"/ui-kit/react/guide-message-privately"}]},{"group":"Reference","pages":[{"title":"Methods","href":"/ui-kit/react/methods"}]},{"group":"Migration Guide","pages":[{"title":"Upgrading from v6 to v7","sidebarTitle":"Overview","href":"/ui-kit/react/migration-overview"},{"title":"Property Changes","sidebarTitle":"Property Changes","href":"/ui-kit/react/migration-property-changes"}]},{"title":"Troubleshooting","href":"/ui-kit/react/troubleshooting"},{"title":"React Sample App","url":"https://github.com/cometchat/cometchat-uikit-react/tree/v7/sample-app","href":"/ui-kit/react/link/sample"},{"title":"Changelog","url":"https://github.com/cometchat/cometchat-uikit-react/releases?q=v7\u0026expanded=true","href":"/ui-kit/react/link/changelog"},{"title":"Figma Design","url":"https://www.figma.com/community/file/1442863561340379957/cometchat-ui-kit-for-web","href":"/ui-kit/react/link/figma"}]}]},{"version":"v6","default":false,"pages":[{"title":"v6","href":"/ui-kit/react/v6/users"}]},{"version":"v5","pages":[{"title":"v5","href":"/ui-kit/react/v5/overview"}]},{"version":"v4","pages":[{"title":"v4","href":"/ui-kit/react/v4/overview"}]},{"version":"v3","pages":[{"title":"v3","href":"/ui-kit/react/v3/overview"}]},{"version":"v2","pages":[{"title":"v2","href":"/ui-kit/react/v2/overview"}]}]},{"dropdown":"React Native","icon":"https://mintlify.s3.us-west-1.amazonaws.com/cometchat-22654f5b/images/icons/react.svg","versions":[{"version":"v5","groups":[{"group":" ","pages":[{"title":"React Native UI Kit","sidebarTitle":"Overview","href":"/ui-kit/react-native/overview"},{"group":"Getting Started","pages":[{"group":"React Native CLI","pages":[{"title":"React Native CLI Integration","sidebarTitle":"Integration","href":"/ui-kit/react-native/react-native-cli-integration"},{"title":"Conversation List + Message View","sidebarTitle":"Conversation List + Message View","href":"/ui-kit/react-native/react-native-conversation"},{"title":"One-to-One / Group Chat","sidebarTitle":"One-to-One / Group Chat","href":"/ui-kit/react-native/react-native-one-to-one-chat"},{"title":"Tab-Based Chat","sidebarTitle":"Tab-Based Chat","href":"/ui-kit/react-native/react-native-tab-based-chat"}]},{"group":"Expo","pages":[{"title":"Expo Integration","sidebarTitle":"Integration","href":"/ui-kit/react-native/expo-integration"},{"title":"Conversation List + Message View","sidebarTitle":"Conversation List + Message View","href":"/ui-kit/react-native/expo-conversation"},{"title":"One-to-One / Group Chat","sidebarTitle":"One-to-One / Group Chat","href":"/ui-kit/react-native/expo-one-to-one-chat"},{"title":"Tab-Based Chat","sidebarTitle":"Tab-Based Chat","href":"/ui-kit/react-native/expo-tab-based-chat"}]}]},{"group":"Features","pages":[{"group":"Chat","pages":[{"title":"Core","href":"/ui-kit/react-native/core-features"},{"title":"Offline Support","sidebarTitle":"Offline Support","href":"/ui-kit/react-native/offline-support"},{"title":"RTL Support","sidebarTitle":"RTL Support","href":"/ui-kit/react-native/rtl-support"},{"title":"Extensions","href":"/ui-kit/react-native/extensions"},{"title":"Smart Chat Features","href":"/ui-kit/react-native/ai-features"}]},{"title":"Calling Integration","href":"/ui-kit/react-native/calling-integration"},{"title":"Call","href":"/ui-kit/react-native/call-features"},{"title":"Campaigns","href":"/ui-kit/react-native/campaigns"}]},{"group":"Theming","pages":[{"title":"Customizing UI With Theming","sidebarTitle":"Overview","href":"/ui-kit/react-native/theme"},{"title":"Color Resources","sidebarTitle":"Colors","href":"/ui-kit/react-native/colors"},{"title":"Component Styling","sidebarTitle":"Component Styling","href":"/ui-kit/react-native/component-styling"},{"title":"Message Bubble Styling","href":"/ui-kit/react-native/message-bubble-styling"},{"title":"Localization","sidebarTitle":"Localize","href":"/ui-kit/react-native/localize"},{"title":"Sound Manager","href":"/ui-kit/react-native/sound-manager"}]},{"group":"Components","pages":[{"title":"Overview","href":"/ui-kit/react-native/components-overview"},{"title":"Conversations","href":"/ui-kit/react-native/conversations"},{"title":"Users","href":"/ui-kit/react-native/users"},{"title":"Groups","href":"/ui-kit/react-native/groups"},{"title":"Group Members","href":"/ui-kit/react-native/group-members"},{"title":"Message Header","href":"/ui-kit/react-native/message-header"},{"title":"Message List","href":"/ui-kit/react-native/message-list"},{"title":"Pinned Messages","sidebarTitle":"Pinned Messages","href":"/ui-kit/react-native/pinned-messages"},{"title":"Saved Messages","sidebarTitle":"Saved Messages","href":"/ui-kit/react-native/saved-messages"},{"title":"Message Composer","href":"/ui-kit/react-native/message-composer"},{"title":"Compact Message Composer","href":"/ui-kit/react-native/compact-message-composer"},{"title":"Threaded Messages Header","href":"/ui-kit/react-native/threaded-messages-header"},{"title":"Message Information","sidebarTitle":"Message Information","href":"/ui-kit/react-native/message-information"},{"title":"Incoming Call","href":"/ui-kit/react-native/incoming-call"},{"title":"Outgoing Call","href":"/ui-kit/react-native/outgoing-call"},{"title":"Ongoing Call","href":"/ui-kit/react-native/ongoing-call"},{"title":"Call Buttons","href":"/ui-kit/react-native/call-buttons"},{"title":"Call Logs","href":"/ui-kit/react-native/call-logs"},{"title":"AI Assistant Chat History","href":"/ui-kit/react-native/ai-assistant-chat-history"},{"title":"Notification Feed","href":"/ui-kit/react-native/notification-feed"},{"title":"Search","href":"/ui-kit/react-native/search"}]},{"group":"Reference","pages":[{"title":"Methods","href":"/ui-kit/react-native/methods"},{"title":"Events","href":"/ui-kit/react-native/events"}]},{"group":"Guides","pages":[{"title":"Overview","sidebarTitle":"Overview","href":"/ui-kit/react-native/guide-overview"},{"title":"AI Agent Integration","sidebarTitle":"AI Agent Integration","href":"/ui-kit/react-native/guide-ai-agent"},{"title":"New Chat","sidebarTitle":"New Chat","href":"/ui-kit/react-native/guide-new-chat"},{"title":"Group Chat","sidebarTitle":"Group Chat","href":"/ui-kit/react-native/guide-group-chat"},{"title":"Threaded Messages","sidebarTitle":"Threaded Messages","href":"/ui-kit/react-native/guide-threaded-messages"},{"title":"Pin \u0026 Save Messages","sidebarTitle":"Pin \u0026 Save Messages","href":"/ui-kit/react-native/guide-pin-and-save-messages"},{"title":"Text Color","sidebarTitle":"Text Color","href":"/ui-kit/react-native/guide-text-color"},{"title":"Custom Text Formatter","sidebarTitle":"Custom Text Formatter","href":"/ui-kit/react-native/guide-custom-text-formatter"},{"title":"Search Messages","sidebarTitle":"Search Messages","href":"/ui-kit/react-native/guide-search-messages"},{"title":"Message Privately","sidebarTitle":"Message Privately","href":"/ui-kit/react-native/guide-message-privately"},{"title":"Block/Unblock Users","sidebarTitle":"Block/Unblock Users","href":"/ui-kit/react-native/guide-block-unblock-user"},{"title":"Custom Message Types","sidebarTitle":"Custom Message Types","href":"/ui-kit/react-native/custom-message-types"},{"title":"Text Formatters","sidebarTitle":"Text Formatters","href":"/ui-kit/react-native/custom-text-formatter-guide"},{"title":"Mentions Formatter","href":"/ui-kit/react-native/mentions-formatter-guide"},{"title":"URL Formatter","href":"/ui-kit/react-native/url-formatter-guide"},{"title":"ShortCut Formatter","href":"/ui-kit/react-native/shortcut-formatter-guide"},{"title":"Apple Privacy Manifest","href":"/ui-kit/react-native/apple-privacy-manifest-guide"}]},{"group":"Migration Guide","pages":[{"title":"Upgrading From V4 to V5","href":"/ui-kit/react-native/upgrading-from-v4"},{"title":"Property Changes","href":"/ui-kit/react-native/property-changes"}]},{"title":"Troubleshooting","href":"/ui-kit/react-native/troubleshooting"},{"title":"React Native Sample App","url":"https://github.com/cometchat/cometchat-uikit-react-native/tree/v5","href":"/ui-kit/react-native/link/sample"},{"title":"Changelog","url":"https://github.com/cometchat/cometchat-uikit-react-native/releases","href":"/ui-kit/react-native/link/changelog"}]}]},{"version":"v4","pages":[{"title":"v4","href":"/ui-kit/react-native/v4/overview"}]},{"version":"v3","pages":[{"title":"v3","href":"/ui-kit/react-native/v3/overview"}]},{"version":"v2","pages":[{"title":"v2","href":"/ui-kit/react-native/v2/overview"}]}]},{"dropdown":"iOS","icon":"https://mintlify.s3.us-west-1.amazonaws.com/cometchat-22654f5b/images/icons/swift.svg","versions":[{"version":"v6","default":false,"groups":[{"group":" ","pages":[{"title":"iOS UI Kit","sidebarTitle":"Overview","href":"/ui-kit/ios/v6/overview"},{"group":"Getting Started","pages":[{"title":"Getting Started With CometChat iOS UI Kit","sidebarTitle":"Integration","href":"/ui-kit/ios/v6/getting-started"},{"title":"Getting Started With the SwiftUI UI Kit","sidebarTitle":"SwiftUI","href":"/ui-kit/ios/v6/getting-started-swiftui"},{"title":"Getting Started With the UIKit UI Kit","sidebarTitle":"UIKit","href":"/ui-kit/ios/v6/getting-started-uikit"},{"title":"Building A One-to-One / Group Chat","sidebarTitle":"One-to-One / Group Chat","href":"/ui-kit/ios/v6/one-to-one-chat"},{"title":"Building A Tab-Based Messaging UI","sidebarTitle":"Tab Based Chat Experience","href":"/ui-kit/ios/v6/tab-based-chat"},{"title":"Calling Integration","href":"/ui-kit/ios/v6/calling-integration"}]},{"group":"Features","pages":[{"group":"Chat","pages":[{"title":"Core","href":"/ui-kit/ios/v6/core-features"},{"title":"Extensions","href":"/ui-kit/ios/v6/extensions"},{"title":"Smart Chat Features","href":"/ui-kit/ios/v6/ai-features"}]},{"title":"Call","href":"/ui-kit/ios/v6/call-features"}]},{"group":"Theming","pages":[{"title":"Introduction","sidebarTitle":"Introduction","href":"/ui-kit/ios/v6/theming"},{"title":"Color Resources","href":"/ui-kit/ios/v6/color-resources"},{"title":"Component Styling","href":"/ui-kit/ios/v6/component-styling"},{"title":"Message Bubble Styling","href":"/ui-kit/ios/v6/message-bubble-styling"},{"title":"Localize","href":"/ui-kit/ios/v6/localize"},{"title":"Sound Manager","href":"/ui-kit/ios/v6/sound-manager"}]},{"group":"Customization","pages":[{"title":"Overview","sidebarTitle":"Overview","href":"/ui-kit/ios/v6/customization-overview"},{"title":"View Slots","href":"/ui-kit/ios/v6/customization-view-slots"},{"title":"Styles","href":"/ui-kit/ios/v6/customization-styles"},{"title":"Stores \u0026 Data","sidebarTitle":"Stores \u0026 Data","href":"/ui-kit/ios/v6/customization-store-data"},{"title":"Events \u0026 Callbacks","href":"/ui-kit/ios/v6/customization-events"},{"title":"State Views","href":"/ui-kit/ios/v6/customization-state-views"},{"title":"Text Formatters","href":"/ui-kit/ios/v6/customization-text-formatters"},{"title":"Menu \u0026 Options","href":"/ui-kit/ios/v6/customization-menu-options"}]},{"group":"Components","pages":[{"title":"Overview","sidebarTitle":"Components","href":"/ui-kit/ios/v6/components-overview"},{"title":"Conversations","href":"/ui-kit/ios/v6/conversations"},{"title":"Building A Conversation List + Message View","sidebarTitle":"Conversation List + Message View","description":"Build a conversation list that opens a full-screen chat, with the CometChat iOS UI Kit v6 SwiftUI or UIKit toolkit.","href":"/ui-kit/ios/v6/conversation-message-view"},{"title":"Users","href":"/ui-kit/ios/v6/users"},{"title":"Groups","description":"Scrollable list of the groups in your app, with group-type badges, member counts, live search, filters, selection and item callbacks.","href":"/ui-kit/ios/v6/groups"},{"title":"Group Members","href":"/ui-kit/ios/v6/group-members"},{"title":"Message Header","href":"/ui-kit/ios/v6/message-header"},{"title":"Message List","href":"/ui-kit/ios/v6/message-list"},{"title":"Message Composer","href":"/ui-kit/ios/v6/message-composer"},{"title":"Message Bubbles","sidebarTitle":"Message Bubbles","href":"/ui-kit/ios/v6/message-template"},{"title":"Thread Header","href":"/ui-kit/ios/v6/thread-header"},{"title":"Outgoing Call","href":"/ui-kit/ios/v6/outgoing-call"},{"title":"Ongoing Call","href":"/ui-kit/ios/v6/ongoing-call"},{"title":"Call Buttons","href":"/ui-kit/ios/v6/call-buttons"},{"title":"Call Logs","href":"/ui-kit/ios/v6/call-logs"},{"title":"Call Log Details","href":"/ui-kit/ios/v6/call-log-details"},{"title":"Search","href":"/ui-kit/ios/v6/search"},{"title":"Pinned Messages","href":"/ui-kit/ios/v6/pinned-messages"},{"title":"Saved Messages","href":"/ui-kit/ios/v6/saved-messages"},{"title":"AI Assistant Chat History","href":"/ui-kit/ios/v6/ai-assistant-chat-history"},{"title":"Notification Feed","href":"/ui-kit/ios/v6/notification-feed"},{"title":"Create Poll","href":"/ui-kit/ios/v6/create-poll"},{"title":"Sticker Keyboard","href":"/ui-kit/ios/v6/sticker-keyboard"},{"title":"Emoji Keyboard","href":"/ui-kit/ios/v6/emoji-keyboard"},{"title":"Reaction List","href":"/ui-kit/ios/v6/reaction-list"},{"title":"Message Information","href":"/ui-kit/ios/v6/message-information"},{"title":"Flag Message","href":"/ui-kit/ios/v6/flag-message"}]},{"group":"Reference","pages":[{"title":"Methods","href":"/ui-kit/ios/v6/methods"},{"title":"Events","href":"/ui-kit/ios/v6/events"}]},{"group":"Guides","pages":[{"title":"Overview","sidebarTitle":"Overview","href":"/ui-kit/ios/v6/guide-overview"},{"title":"Threaded Messages","sidebarTitle":"Threaded Messages","href":"/ui-kit/ios/v6/guide-threaded-messages"},{"title":"Pin \u0026 Save Messages","sidebarTitle":"Pin \u0026 Save Messages","href":"/ui-kit/ios/v6/guide-pin-and-save-messages"},{"title":"Block/Unblock User","sidebarTitle":"Block/Unblock User","href":"/ui-kit/ios/v6/guide-block-unblock-user"},{"title":"New Chat","sidebarTitle":"New Chat","href":"/ui-kit/ios/v6/guide-new-chat"},{"title":"Message Privately","sidebarTitle":"Message Privately","href":"/ui-kit/ios/v6/guide-message-privately"},{"title":"Call Log Details","sidebarTitle":"Call Log Details","href":"/ui-kit/ios/v6/guide-call-log-details"},{"title":"Group Management","sidebarTitle":"Group Chat","href":"/ui-kit/ios/v6/guide-group-chat"},{"title":"Color Selected Text","sidebarTitle":"Color Selected Text","href":"/ui-kit/ios/v6/guide-text-color"},{"title":"Text Formatter Base Class","sidebarTitle":"Custom Text Formatter","href":"/ui-kit/ios/v6/custom-text-formatter-guide"},{"title":"Mentions Formatter","href":"/ui-kit/ios/v6/mentions-formatter-guide"},{"title":"ShortCut Formatter","href":"/ui-kit/ios/v6/shortcut-formatter-guide"},{"title":"Search Messages","sidebarTitle":"Search Messages","href":"/ui-kit/ios/v6/guide-search-messages"},{"title":"AI Agent Integration","sidebarTitle":"AI Agent","href":"/ui-kit/ios/v6/guide-ai-agent"}]},{"title":"Architecture \u0026 Data Flow","sidebarTitle":"Architecture","href":"/ui-kit/ios/v6/architecture-data-flow"},{"group":"Migration Guide","pages":[{"title":"Upgrading from v5","sidebarTitle":"Upgrading from v5","href":"/ui-kit/ios/v6/migrating-from-v5"}]},{"title":"Troubleshooting","href":"/ui-kit/ios/v6/troubleshooting"}]}]},{"version":"v5","default":true,"pages":[{"title":"v5","href":"/ui-kit/ios/overview"}]},{"version":"v4","pages":[{"title":"v4","href":"/ui-kit/ios/v4/users"}]},{"version":"v3","pages":[{"title":"v3","href":"/ui-kit/ios/v3/overview"}]},{"version":"v2","pages":[{"title":"v2","href":"/ui-kit/ios/v2/overview"}]}]},{"dropdown":"Android","icon":"https://mintlify.s3.us-west-1.amazonaws.com/cometchat-22654f5b/images/icons/android.svg","versions":[{"version":"v6","groups":[{"group":" ","pages":[{"title":"Android UI Kit","sidebarTitle":"Overview","href":"/ui-kit/android/overview"},{"group":"Getting Started","pages":[{"title":"Getting Started With CometChat Android UI Kit","sidebarTitle":"Integration","href":"/ui-kit/android/getting-started"},{"title":"Getting Started With Kotlin UI Kit","sidebarTitle":"Kotlin (XML Views)","href":"/ui-kit/android/getting-started-kotlin"},{"title":"Getting Started With Jetpack Compose UI Kit","sidebarTitle":"Jetpack Compose","href":"/ui-kit/android/getting-started-jetpack"},{"title":"Building A One-to-One / Group Chat","sidebarTitle":"One-to-One / Group Chat","href":"/ui-kit/android/one-to-one-chat"},{"title":"Building A Tab-Based Messaging UI","sidebarTitle":"Tab Based Chat Experience","href":"/ui-kit/android/tab-based-chat"},{"title":"Calling Integration","href":"/ui-kit/android/calling-integration"}]},{"group":"Features","pages":[{"group":"Chat","pages":[{"title":"Core","href":"/ui-kit/android/core-features"},{"title":"Offline Support","sidebarTitle":"Offline Support","href":"/ui-kit/android/offline-support"},{"title":"RTL Support","sidebarTitle":"RTL Support","href":"/ui-kit/android/rtl-support"},{"title":"Extensions","href":"/ui-kit/android/extensions"},{"title":"Smart Chat Features","href":"/ui-kit/android/ai-features"}]},{"title":"Call","href":"/ui-kit/android/call-features"},{"title":"Campaigns","href":"/ui-kit/android/campaigns"}]},{"group":"Theming","pages":[{"title":"Introduction","href":"/ui-kit/android/theme-introduction"},{"title":"Color Resources","href":"/ui-kit/android/color-resources"},{"title":"Component Styling","href":"/ui-kit/android/component-styling"},{"title":"Message Bubble Styling","href":"/ui-kit/android/message-bubble-styling"},{"title":"Localize","href":"/ui-kit/android/localize"},{"title":"Sound Manager","href":"/ui-kit/android/sound-manager"}]},{"group":"Customization","pages":[{"title":"Overview","href":"/ui-kit/android/customization-overview"},{"title":"View Slots","href":"/ui-kit/android/customization-view-slots"},{"title":"Styles","href":"/ui-kit/android/customization-styles"},{"title":"ViewModel \u0026 Data","href":"/ui-kit/android/customization-viewmodel-data"},{"title":"Events \u0026 Callbacks","href":"/ui-kit/android/customization-events"},{"title":"State Views","href":"/ui-kit/android/customization-state-views"},{"title":"Text Formatters","href":"/ui-kit/android/customization-text-formatters"},{"title":"Menu \u0026 Options","href":"/ui-kit/android/customization-menu-options"}]},{"group":"Components","pages":[{"title":"Overview","href":"/ui-kit/android/components-overview"},{"title":"Conversations","href":"/ui-kit/android/conversations"},{"title":"Building A Conversation List + Message View","sidebarTitle":"Conversation List + Message View","href":"/ui-kit/android/conversation-message-view"},{"title":"Users","href":"/ui-kit/android/users"},{"title":"Groups","href":"/ui-kit/android/groups"},{"title":"Group Members","href":"/ui-kit/android/group-members"},{"title":"Message Header","href":"/ui-kit/android/message-header"},{"title":"Message List","href":"/ui-kit/android/message-list"},{"title":"Message Composer","href":"/ui-kit/android/message-composer"},{"title":"Message Bubble Factory","href":"/ui-kit/android/message-template"},{"title":"Threaded Messages Header","href":"/ui-kit/android/threaded-messages-header"},{"title":"Incoming Call","href":"/ui-kit/android/incoming-call"},{"title":"Outgoing Call","href":"/ui-kit/android/outgoing-call"},{"title":"Ongoing Call","href":"/ui-kit/android/ongoing-call"},{"title":"Call Buttons","href":"/ui-kit/android/call-buttons"},{"title":"Call Logs","href":"/ui-kit/android/call-logs"},{"title":"Search","href":"/ui-kit/android/search"},{"title":"Pinned Messages","href":"/ui-kit/android/pinned-messages"},{"title":"Saved Messages","href":"/ui-kit/android/saved-messages"},{"title":"AI Assistant Chat History","href":"/ui-kit/android/ai-assistant-chat-history"},{"title":"Notification Feed","href":"/ui-kit/android/notification-feed"}]},{"group":"Reference","pages":[{"title":"Methods","href":"/ui-kit/android/methods"},{"title":"Events","href":"/ui-kit/android/events"}]},{"group":"Guides","pages":[{"title":"Overview","sidebarTitle":"Overview","href":"/ui-kit/android/guide-overview"},{"title":"Threaded Messages","sidebarTitle":"Threaded Messages","href":"/ui-kit/android/guide-threaded-messages"},{"title":"Pin \u0026 Save Messages","sidebarTitle":"Pin \u0026 Save Messages","href":"/ui-kit/android/guide-pin-and-save-messages"},{"title":"Block/Unblock User","sidebarTitle":"Block/Unblock User","href":"/ui-kit/android/guide-block-unblock-user"},{"title":"New Chat","sidebarTitle":"New Chat","href":"/ui-kit/android/guide-new-chat"},{"title":"Message Privately","sidebarTitle":"Message Privately","href":"/ui-kit/android/guide-message-privately"},{"title":"Call Log Details","sidebarTitle":"Call Log Details","href":"/ui-kit/android/guide-call-log-details"},{"title":"Group Management","sidebarTitle":"Group Management","href":"/ui-kit/android/guide-group-chat"},{"title":"Color Selected Text","sidebarTitle":"Color Selected Text","href":"/ui-kit/android/guide-text-color"},{"title":"Text Formatter Base Class","sidebarTitle":"Text Formatter Base Class","href":"/ui-kit/android/custom-text-formatter-guide"},{"title":"Mentions Formatter","href":"/ui-kit/android/mentions-formatter-guide"},{"title":"ShortCut Formatter","href":"/ui-kit/android/shortcut-formatter-guide"},{"title":"Search Messages","sidebarTitle":"Search Messages","href":"/ui-kit/android/guide-search-messages"},{"title":"AI Agent Integration","sidebarTitle":"AI Agent Integration","href":"/ui-kit/android/guide-ai-agent"}]},{"title":"Architecture \u0026 Data Flow","href":"/ui-kit/android/architecture-data-flow"},{"group":"Migration Guide","pages":[{"title":"Upgrading from V5 to V6","href":"/ui-kit/android/upgrading-from-v5"}]},{"title":"Troubleshooting","href":"/ui-kit/android/troubleshooting"},{"title":"Android Sample App","url":"https://github.com/cometchat/cometchat-uikit-android/tree/v6","href":"/ui-kit/android/link/sample"},{"title":"Figma Design","url":"https://www.figma.com/community/file/1444324233177163609/cometchat-ui-kit-for-android","href":"/ui-kit/android/link/figma"},{"title":"Changelog","url":"https://github.com/cometchat/cometchat-uikit-android/releases","href":"/ui-kit/android/link/changelog"}]}]},{"version":"v5","pages":[{"title":"v5","href":"/ui-kit/android/v5/overview"}]},{"version":"v4","pages":[{"title":"v4","href":"/ui-kit/android/v4/overview"}]},{"version":"v3","pages":[{"title":"v3","href":"/ui-kit/android/v3/overview"}]},{"version":"v2","pages":[{"title":"v2","href":"/ui-kit/android/v2/overview"}]}]},{"dropdown":"Flutter","icon":"https://mintlify.s3.us-west-1.amazonaws.com/cometchat-22654f5b/images/icons/flutter.svg","versions":[{"version":"v6","groups":[{"group":" ","pages":[{"title":"CometChat UI Kit For Flutter (V6)","sidebarTitle":"Overview","href":"/ui-kit/flutter/overview"},{"group":"Getting Started","pages":[{"title":"Getting Started With CometChat Flutter UI Kit V6","sidebarTitle":"Getting Started","href":"/ui-kit/flutter/getting-started"},{"title":"Conversation List + Message View","sidebarTitle":"Conversation List + Message View","href":"/ui-kit/flutter/flutter-conversation"},{"title":"Building A One To One/Group Chat Experience","sidebarTitle":"One To One/Group Chat","href":"/ui-kit/flutter/flutter-one-to-one-chat"},{"title":"Building A Messaging UI With Tabs, Sidebar, And Message View","sidebarTitle":"Tab Based Chat Experience","href":"/ui-kit/flutter/flutter-tab-based-chat"},{"title":"Calling Integration","href":"/ui-kit/flutter/calling-integration"}]},{"group":"Features","pages":[{"group":"Chat","pages":[{"title":"Core Features","href":"/ui-kit/flutter/core-features"},{"title":"Offline Support","sidebarTitle":"Offline Support","href":"/ui-kit/flutter/offline-support"},{"title":"RTL Support","sidebarTitle":"RTL Support","href":"/ui-kit/flutter/rtl-support"},{"title":"Extensions","href":"/ui-kit/flutter/extensions"}]},{"title":"Call","href":"/ui-kit/flutter/call-features"},{"title":"Campaigns","href":"/ui-kit/flutter/campaigns"}]},{"group":"Theming","pages":[{"title":"Theming In CometChat Flutter UI Kit V6","sidebarTitle":"Theming","href":"/ui-kit/flutter/theme-introduction"},{"title":"Color Resources","href":"/ui-kit/flutter/color-resources"},{"title":"Component Styling","sidebarTitle":"Component Styling","href":"/ui-kit/flutter/component-styling"},{"title":"Customizing Message Bubbles","sidebarTitle":"Message Bubble Styling","href":"/ui-kit/flutter/message-bubble-styling"},{"title":"Localize","href":"/ui-kit/flutter/localize"},{"title":"Sound Manager","href":"/ui-kit/flutter/sound-manager"}]},{"group":"Components","pages":[{"title":"Overview","href":"/ui-kit/flutter/components-overview"},{"title":"Conversations","href":"/ui-kit/flutter/conversations"},{"title":"Users","href":"/ui-kit/flutter/users"},{"title":"Groups","href":"/ui-kit/flutter/groups"},{"title":"Group Members","href":"/ui-kit/flutter/group-members"},{"title":"Message Header","href":"/ui-kit/flutter/message-header"},{"title":"Message List","href":"/ui-kit/flutter/message-list"},{"title":"Message Composer","href":"/ui-kit/flutter/message-composer"},{"title":"Threaded Messages Header","href":"/ui-kit/flutter/threaded-messages-header"},{"title":"Incoming Call","href":"/ui-kit/flutter/incoming-call"},{"title":"Outgoing Call","href":"/ui-kit/flutter/outgoing-call"},{"title":"Call Buttons","href":"/ui-kit/flutter/call-buttons"},{"title":"Call Logs","href":"/ui-kit/flutter/call-logs"},{"title":"Search","href":"/ui-kit/flutter/search"},{"title":"Pinned Messages","href":"/ui-kit/flutter/pinned-messages"},{"title":"Saved Messages","href":"/ui-kit/flutter/saved-messages"},{"title":"Notification Feed","href":"/ui-kit/flutter/notification-feed"}]},{"group":"Reference","pages":[{"title":"Methods","href":"/ui-kit/flutter/methods"},{"title":"Events","href":"/ui-kit/flutter/events"}]},{"group":"Customization","pages":[{"title":"Customization Overview","href":"/ui-kit/flutter/customization-overview"},{"title":"View Slots","href":"/ui-kit/flutter/customization-view-slots"},{"title":"BLoC \u0026 Data","href":"/ui-kit/flutter/customization-bloc-data"},{"title":"State Views","href":"/ui-kit/flutter/customization-state-views"},{"title":"Text Formatters","href":"/ui-kit/flutter/customization-text-formatters"},{"title":"Menu \u0026 Options","href":"/ui-kit/flutter/customization-menu-options"},{"title":"MessageTemplateUtils \u0026 Data Source","href":"/ui-kit/flutter/customization-datasource"}]},{"group":"Advanced","pages":[{"title":"Message Template","href":"/ui-kit/flutter/message-template"},{"title":"Mentions Formatter","href":"/ui-kit/flutter/mentions-formatter-guide"},{"title":"Shortcut Formatter","href":"/ui-kit/flutter/shortcut-formatter-guide"},{"title":"Custom Text Formatter Guide","href":"/ui-kit/flutter/custom-text-formatter-guide"},{"title":"Troubleshooting","href":"/ui-kit/flutter/troubleshooting"}]},{"group":"Guides","pages":[{"title":"Overview","sidebarTitle":"Overview","href":"/ui-kit/flutter/guide-overview"},{"title":"Threaded Messages","sidebarTitle":"Threaded Messages","href":"/ui-kit/flutter/guide-threaded-messages"},{"title":"Thread Subscription","sidebarTitle":"Thread Subscription","href":"/ui-kit/flutter/guide-thread-subscription"},{"title":"Pin \u0026 Save Messages","sidebarTitle":"Pin \u0026 Save Messages","href":"/ui-kit/flutter/guide-pin-and-save-messages"},{"title":"Implementing Block/Unblock User in Flutter with CometChat UIKit","sidebarTitle":"Block/Unblock User","href":"/ui-kit/flutter/guide-block-unblock-user"},{"title":"New Chat","sidebarTitle":"New Chat","href":"/ui-kit/flutter/guide-new-chat"},{"title":"Message Privately","sidebarTitle":"Message Privately","href":"/ui-kit/flutter/guide-message-privately"},{"title":"Call Log Details","sidebarTitle":"Call Log Details","href":"/ui-kit/flutter/guide-call-log-details"},{"title":"Group Chat","sidebarTitle":"Group Chat","href":"/ui-kit/flutter/guide-group-chat"},{"title":"Message Agentic Flow","sidebarTitle":"Message Agentic Flow","href":"/ui-kit/flutter/guide-message-agentic-flow"},{"title":"Multi Tab Chat UI Guide","href":"/ui-kit/flutter/multi-tab-chat-ui-guide"}]},{"group":"Migration Guide","pages":[{"title":"Upgrading From V5","sidebarTitle":"Upgrading From V5","href":"/ui-kit/flutter/upgrading-from-v5"}]},{"title":"Flutter Sample App","url":"https://github.com/cometchat/cometchat-sample-app-flutter","href":"/ui-kit/flutter/link/sample"},{"title":"Changelog","url":"https://github.com/cometchat/cometchat-uikit-flutter/releases","href":"/ui-kit/flutter/link/changelog"}]}]},{"version":"v5","pages":[{"title":"v5","href":"/ui-kit/flutter/v5/overview"}]},{"version":"v4","pages":[{"title":"v4","href":"/ui-kit/flutter/v4/overview"}]}]},{"dropdown":"Angular","icon":"https://mintlify.s3.us-west-1.amazonaws.com/cometchat-22654f5b/images/icons/angular.svg","versions":[{"version":"v5","groups":[{"group":" ","pages":[{"title":"Angular UI Kit","sidebarTitle":"Overview","href":"/ui-kit/angular/overview"},{"group":"Getting Started","pages":[{"title":"Quickstart","href":"/ui-kit/angular/quickstart"},{"title":"Integration","sidebarTitle":"Integration","href":"/ui-kit/angular/integration"},{"title":"Conversation List + Message View","sidebarTitle":"Conversation List + Message View","href":"/ui-kit/angular/angular-conversation"},{"title":"One-to-One / Group Chat","sidebarTitle":"One-to-One / Group Chat","href":"/ui-kit/angular/angular-one-to-one-chat"},{"title":"Tab-Based Chat","sidebarTitle":"Tab-Based Chat","href":"/ui-kit/angular/angular-tab-based-chat"}]},{"group":"Features","pages":[{"group":"Chat","pages":[{"title":"Core Features","href":"/ui-kit/angular/core-features"},{"title":"Offline Support","sidebarTitle":"Offline Support","href":"/ui-kit/angular/offline-support"},{"title":"Extensions","href":"/ui-kit/angular/extensions"},{"title":"AI Smart Chat Features","href":"/ui-kit/angular/ai-features"}]},{"title":"Call Features","href":"/ui-kit/angular/call-features"},{"title":"Campaigns","href":"/ui-kit/angular/campaigns"},{"title":"RTL Support","href":"/ui-kit/angular/rtl-support"}]},{"group":"Theming","pages":[{"title":"Theming","href":"/ui-kit/angular/customization/theming"},{"title":"Message Bubble Styling","href":"/ui-kit/angular/message-bubble-styling"},{"title":"Localization","href":"/ui-kit/angular/customization/localization"},{"title":"Global Configuration","href":"/ui-kit/angular/customization/global-config"},{"title":"Date \u0026 Time Formatting","href":"/ui-kit/angular/customization/date-time-formatting"},{"title":"Sound Manager","href":"/ui-kit/angular/sound-manager"}]},{"group":"Components","pages":[{"title":"Overview","href":"/ui-kit/angular/components/components-overview"},{"group":"Conversations","pages":[{"title":"Conversations","href":"/ui-kit/angular/components/cometchat-conversations"},{"title":"Conversation Item","href":"/ui-kit/angular/components/cometchat-conversation-item"}]},{"group":"Users","pages":[{"title":"Users","href":"/ui-kit/angular/components/cometchat-users"},{"title":"User Item","href":"/ui-kit/angular/components/cometchat-user-item"}]},{"group":"Groups","pages":[{"title":"Groups","href":"/ui-kit/angular/components/cometchat-groups"},{"title":"Group Item","href":"/ui-kit/angular/components/cometchat-group-item"}]},{"group":"Group Members","pages":[{"title":"Group Members","href":"/ui-kit/angular/components/cometchat-group-members"},{"title":"Group Member Item","href":"/ui-kit/angular/components/cometchat-group-member-item"}]},{"title":"Message Header","href":"/ui-kit/angular/components/cometchat-message-header"},{"title":"Search","href":"/ui-kit/angular/components/cometchat-search"},{"title":"Message List","href":"/ui-kit/angular/components/cometchat-message-list"},{"title":"Message Composer","href":"/ui-kit/angular/components/cometchat-message-composer"},{"title":"Message Bubble","href":"/ui-kit/angular/components/cometchat-message-bubble"},{"title":"Message Information","href":"/ui-kit/angular/components/cometchat-message-information"},{"title":"Thread Header","href":"/ui-kit/angular/components/cometchat-thread-header"},{"title":"Pinned Messages","href":"/ui-kit/angular/components/cometchat-pinned-messages"},{"title":"Saved Messages","href":"/ui-kit/angular/components/cometchat-saved-messages"},{"group":"Message Bubbles","pages":[{"title":"Text Bubble","href":"/ui-kit/angular/components/cometchat-text-bubble"},{"title":"Card Bubble","href":"/ui-kit/angular/components/cometchat-card-bubble"},{"title":"Image Bubble","href":"/ui-kit/angular/components/cometchat-image-bubble"},{"title":"Video Bubble","href":"/ui-kit/angular/components/cometchat-video-bubble"},{"title":"Audio Bubble","href":"/ui-kit/angular/components/cometchat-audio-bubble"},{"title":"File Bubble","href":"/ui-kit/angular/components/cometchat-file-bubble"},{"title":"Action Bubble","href":"/ui-kit/angular/components/cometchat-action-bubble"},{"title":"Delete Bubble","href":"/ui-kit/angular/components/cometchat-delete-bubble"},{"title":"Call Bubble","href":"/ui-kit/angular/components/cometchat-call-bubble"},{"title":"Poll Bubble","href":"/ui-kit/angular/components/cometchat-poll-bubble"},{"title":"Collaborative Document Bubble","href":"/ui-kit/angular/components/cometchat-collaborative-document-bubble"},{"title":"Collaborative Whiteboard Bubble","href":"/ui-kit/angular/components/cometchat-collaborative-whiteboard-bubble"},{"title":"Sticker Bubble","href":"/ui-kit/angular/components/cometchat-sticker-bubble"},{"title":"Stickers Keyboard","href":"/ui-kit/angular/components/cometchat-stickers-keyboard"}]},{"group":"Reactions","pages":[{"title":"Reactions","href":"/ui-kit/angular/components/cometchat-reactions"},{"title":"Reaction List","href":"/ui-kit/angular/components/cometchat-reaction-list"},{"title":"Reaction Info","href":"/ui-kit/angular/components/cometchat-reaction-info"}]},{"group":"Calls","pages":[{"title":"Call Buttons","href":"/ui-kit/angular/components/cometchat-call-buttons"},{"title":"Incoming Call","href":"/ui-kit/angular/components/cometchat-incoming-call"},{"title":"Outgoing Call","href":"/ui-kit/angular/components/cometchat-outgoing-call"},{"title":"Call Logs","href":"/ui-kit/angular/components/cometchat-call-logs"}]},{"group":"AI","pages":[{"title":"Smart Replies","href":"/ui-kit/angular/components/cometchat-smart-replies"},{"title":"Conversation Starter","href":"/ui-kit/angular/components/cometchat-conversation-starter"},{"title":"Conversation Summary","href":"/ui-kit/angular/components/cometchat-conversation-summary"},{"title":"CometChatAIAssistantChat","href":"/ui-kit/angular/components/cometchat-ai-assistant-chat"},{"title":"CometChatMarkdownRenderer","href":"/ui-kit/angular/components/cometchat-markdown-renderer"}]},{"title":"Notification Feed","href":"/ui-kit/angular/components/notification-feed"}]},{"group":"Reference","pages":[{"title":"Events","href":"/ui-kit/angular/events"},{"title":"Methods","href":"/ui-kit/angular/methods"},{"title":"Accessibility","href":"/ui-kit/angular/accessibility"},{"title":"Troubleshooting","href":"/ui-kit/angular/troubleshooting"}]},{"group":"Guides","pages":[{"title":"Guides","sidebarTitle":"Overview","href":"/ui-kit/angular/guides/guides-overview"},{"title":"State Management","href":"/ui-kit/angular/guides/state-management"},{"title":"Threaded Messages","sidebarTitle":"Threaded Messages","href":"/ui-kit/angular/guides/threaded-messages"},{"title":"Thread Subscription","sidebarTitle":"Thread Subscription","href":"/ui-kit/angular/guides/thread-subscription"},{"title":"Pin and Save Messages","sidebarTitle":"Pin \u0026 Save","href":"/ui-kit/angular/guides/pin-and-save-messages"},{"title":"Group Chat","sidebarTitle":"Group Chat","href":"/ui-kit/angular/guides/group-chat"},{"title":"New Chat","sidebarTitle":"New Chat","href":"/ui-kit/angular/guides/new-chat"},{"title":"Block/Unblock Users","sidebarTitle":"Block/Unblock Users","href":"/ui-kit/angular/guides/block-unblock-user"},{"title":"Message Privately","sidebarTitle":"Message Privately","href":"/ui-kit/angular/guides/message-privately"},{"title":"Call Log Details","sidebarTitle":"Call Log Details","href":"/ui-kit/angular/guides/call-log-details"},{"title":"Search Messages","sidebarTitle":"Search Messages","href":"/ui-kit/angular/guides/search-messages"},{"title":"Rich Text Formatting","sidebarTitle":"Rich Text Formatting","href":"/ui-kit/angular/guides/rich-text-formatting"},{"title":"Custom Message Types","href":"/ui-kit/angular/guides/custom-message-types"},{"title":"Card Messages","href":"/ui-kit/angular/guides/card-messages"},{"title":"Custom Text Formatter","sidebarTitle":"Custom Text Formatter","href":"/ui-kit/angular/guides/custom-text-formatter"},{"title":"Mentions Formatter","href":"/ui-kit/angular/guides/mentions-formatter"},{"title":"ShortCut Formatter","href":"/ui-kit/angular/guides/shortcut-formatter"},{"title":"Hashtag Formatter","href":"/ui-kit/angular/guides/hashtag-formatter"},{"title":"URL Formatter","href":"/ui-kit/angular/guides/url-formatter"},{"title":"RxJS Subscription Patterns","href":"/ui-kit/angular/guides/subscription-patterns"}]},{"group":"Services","pages":[{"title":"Services","href":"/ui-kit/angular/api-reference/introduction"},{"title":"Chat State Service","href":"/ui-kit/angular/api-reference/chat-state-service"},{"title":"Message Bubble Config Service","href":"/ui-kit/angular/api-reference/message-bubble-config-service"},{"title":"CometChat Templates Service","href":"/ui-kit/angular/api-reference/templates-service"},{"title":"Search Conversations Service","href":"/ui-kit/angular/api-reference/search-conversations-service"},{"title":"Search Messages Service","href":"/ui-kit/angular/api-reference/search-messages-service"},{"title":"Formatter Config Service","href":"/ui-kit/angular/api-reference/formatter-config-service"},{"title":"Rich Text Editor Service","href":"/ui-kit/angular/api-reference/rich-text-editor-service"}]},{"title":"Upgrading From V4","href":"/ui-kit/angular/customization/migration-guide"}]}]},{"version":"v4","pages":[{"title":"v4","href":"/ui-kit/angular/v4/overview"}]},{"version":"v3","pages":[{"title":"v3","href":"/ui-kit/angular/3.0/overview"}]},{"version":"v2","pages":[{"title":"v2","href":"/ui-kit/angular/2.0/overview"}]}]},{"dropdown":"Vue","icon":"https://mintlify.s3.us-west-1.amazonaws.com/cometchat-22654f5b/images/icons/vuejs.svg","versions":[{"version":"v4","groups":[{"group":" ","pages":[{"title":"Overview","href":"/ui-kit/vue/overview"},{"title":"Key Concepts","href":"/ui-kit/vue/key-concepts"},{"group":"Integration","pages":[{"title":"Integration","sidebarTitle":"Overview","href":"/ui-kit/vue/integration"},{"title":"CometChat UI Kit","href":"/ui-kit/vue/ui-kit-methods"},{"title":"Theme","href":"/ui-kit/vue/theme"}]},{"title":"Nuxt.Js Integration","href":"/ui-kit/vue/nuxtjs-integration"},{"title":"UI Components","href":"/ui-kit/vue/ui-components-overview"},{"group":"Conversations","pages":[{"title":"Conversations With Messages","href":"/ui-kit/vue/conversations-with-messages"},{"title":"Conversations","href":"/ui-kit/vue/conversations"},{"title":"Contacts","href":"/ui-kit/vue/contacts"}]},{"group":"Users","pages":[{"title":"Users With Messages","href":"/ui-kit/vue/users-with-messages"},{"title":"Users","href":"/ui-kit/vue/users"},{"title":"User Details","href":"/ui-kit/vue/user-details"}]},{"group":"Groups","pages":[{"title":"Groups With Messages","href":"/ui-kit/vue/groups-with-messages"},{"title":"Groups","href":"/ui-kit/vue/groups"},{"title":"Group Members","href":"/ui-kit/vue/group-members"},{"title":"Add Members","href":"/ui-kit/vue/group-add-members"},{"title":"Banned Members","href":"/ui-kit/vue/group-banned-members"},{"title":"Transfer Ownership","href":"/ui-kit/vue/group-transfer-ownership"},{"title":"Group Details","href":"/ui-kit/vue/group-details"}]},{"group":"Messages","pages":[{"title":"Messages","href":"/ui-kit/vue/messages"},{"title":"Message Header","href":"/ui-kit/vue/message-header"},{"title":"Message List","href":"/ui-kit/vue/message-list"},{"title":"Message Composer","href":"/ui-kit/vue/message-composer"},{"title":"Message Information","href":"/ui-kit/vue/message-information"},{"title":"Threaded Messages","href":"/ui-kit/vue/threaded-messages"}]},{"group":"Calls","pages":[{"title":"Integration","href":"/ui-kit/vue/calls-integration"},{"title":"Incoming Call","href":"/ui-kit/vue/incoming-call"},{"title":"Ongoing Call","href":"/ui-kit/vue/ongoing-call"},{"title":"Outgoing Call","href":"/ui-kit/vue/outgoing-call"},{"title":"Call Buttons","href":"/ui-kit/vue/call-buttons"}]},{"group":"AI","pages":[{"title":"Integration","href":"/ui-kit/vue/ai-integration"},{"title":"AI Conversation Starter","href":"/ui-kit/vue/ai-conversation-starter"},{"title":"AI Smart Replies","href":"/ui-kit/vue/ai-smart-replies"},{"title":"AI Conversation Summary","href":"/ui-kit/vue/ai-conversation-summary"},{"title":"AI Assist Bot","href":"/ui-kit/vue/ai-assist-bot"}]},{"group":"Views","pages":[{"title":"Message Bubble","href":"/ui-kit/vue/message-bubble"},{"title":"User Member Wrapper","href":"/ui-kit/vue/user-member-wrapper"},{"title":"Tabs","href":"/ui-kit/vue/tabs"}]},{"title":"Elements","href":"/ui-kit/vue/web-elements"},{"title":"Shared","href":"/ui-kit/vue/shared-elements"},{"title":"Vue Sample App","url":"https://github.com/cometchat/cometchat-sample-app-vue/releases","href":"/ui-kit/vue/link/sample"},{"title":"Changelog","url":"https://github.com/cometchat/cometchat-uikit-vue/releases","href":"/ui-kit/vue/link/changelog"}]}]},{"version":"v3","pages":[{"title":"v3","href":"/ui-kit/vue/3.0/overview"}]},{"version":"v2","pages":[{"title":"v2","href":"/ui-kit/vue/2.0/overview"}]}]}]},{"tab":"SDKs","dropdowns":[{"dropdown":"JavaScript","icon":"https://mintlify.s3.us-west-1.amazonaws.com/cometchat-22654f5b/images/icons/js.svg","versions":[{"version":"v4","groups":[{"group":" ","pages":[{"title":"Overview","href":"/sdk/javascript/overview"},{"title":"Setup","sidebarTitle":"Setup","href":"/sdk/javascript/setup-sdk"},{"title":"Authentication","sidebarTitle":"Authentication","href":"/sdk/javascript/authentication-overview"},{"title":"PHP Backend + JS SDK: Auth Token Login","sidebarTitle":"PHP Auth Token Sample","href":"/sdk/javascript/php-auth-token-sample"},{"group":"Messaging","pages":[{"title":"Send A Message","href":"/sdk/javascript/send-message"},{"title":"Upload Files \u0026 Send Attachments","sidebarTitle":"Upload Files","href":"/sdk/javascript/upload-files"},{"title":"Receive A Message","href":"/sdk/javascript/receive-message"},{"title":"Card Messages","href":"/sdk/javascript/card-messages"},{"title":"Additional Message Filtering","href":"/sdk/javascript/message-filtering"},{"title":"Retrieve Conversations","href":"/sdk/javascript/retrieve-conversations"},{"title":"Threaded Messages","href":"/sdk/javascript/threaded-messages"},{"title":"Thread Subscription","href":"/sdk/javascript/thread-subscription"},{"title":"Edit A Message","href":"/sdk/javascript/edit-message"},{"title":"Delete A Message","href":"/sdk/javascript/delete-message"},{"title":"Flag Message","href":"/sdk/javascript/flag-message"},{"title":"Pin A Message","href":"/sdk/javascript/pin-message"},{"title":"Save A Message","href":"/sdk/javascript/save-message"},{"title":"Delete A Conversation","href":"/sdk/javascript/delete-conversation"},{"title":"Pin A Conversation","href":"/sdk/javascript/pin-conversation"},{"title":"Typing Indicators","href":"/sdk/javascript/typing-indicators"},{"title":"Transient Messages","href":"/sdk/javascript/transient-messages"},{"title":"Delivery \u0026 Read Receipts","href":"/sdk/javascript/delivery-read-receipts"},{"title":"Mentions","href":"/sdk/javascript/mentions"},{"title":"Reactions","href":"/sdk/javascript/reactions"}]},{"group":"Offline Support","pages":[{"title":"Offline Support","sidebarTitle":"Offline Support","href":"/sdk/javascript/offline-overview"},{"title":"Enable Offline Support","sidebarTitle":"Enable Offline Support","href":"/sdk/javascript/offline-enable"},{"title":"Show Cached Data","sidebarTitle":"Show Cached Data","href":"/sdk/javascript/offline-cached-data"},{"title":"Send While Offline","sidebarTitle":"Send While Offline","href":"/sdk/javascript/offline-send"},{"title":"Stay in Sync","sidebarTitle":"Stay in Sync","href":"/sdk/javascript/offline-sync"},{"title":"Media Caching","sidebarTitle":"Media Caching","href":"/sdk/javascript/offline-media-caching"},{"title":"Encrypt the Cache","sidebarTitle":"Encrypt the Cache","href":"/sdk/javascript/offline-encryption"},{"title":"Offline Configuration \u0026 API Reference","sidebarTitle":"Configuration \u0026 API Reference","href":"/sdk/javascript/offline-reference"}]},{"title":"Calling","sidebarTitle":"Calling","href":"/sdk/javascript/calling-overview"},{"group":"Users","pages":[{"title":"Users","sidebarTitle":"Overview","href":"/sdk/javascript/users-overview"},{"title":"Retrieve Users","href":"/sdk/javascript/retrieve-users"},{"title":"User Management","href":"/sdk/javascript/user-management"},{"title":"Block Users","href":"/sdk/javascript/block-users"}]},{"title":"User Presence","sidebarTitle":"Overview","href":"/sdk/javascript/user-presence"},{"group":"Groups","pages":[{"title":"Groups","sidebarTitle":"Overview","href":"/sdk/javascript/groups-overview"},{"title":"Retrieve Groups","href":"/sdk/javascript/retrieve-groups"},{"title":"Create A Group","href":"/sdk/javascript/create-group"},{"title":"Update A Group","href":"/sdk/javascript/update-group"},{"title":"Join A Group","href":"/sdk/javascript/join-group"},{"title":"Leave A Group","href":"/sdk/javascript/leave-group"},{"title":"Delete A Group","href":"/sdk/javascript/delete-group"},{"title":"Retrieve Group Members","href":"/sdk/javascript/retrieve-group-members"},{"title":"Add Members To A Group","href":"/sdk/javascript/group-add-members"},{"title":"Ban Or Kick Member From A Group","href":"/sdk/javascript/group-kick-ban-members"},{"title":"Change Member Scope","href":"/sdk/javascript/group-change-member-scope"},{"title":"Transfer Group Ownership","href":"/sdk/javascript/transfer-group-ownership"}]},{"title":"AI Moderation","sidebarTitle":"AI Moderation","href":"/sdk/javascript/ai-moderation"},{"title":"AI Agents","href":"/sdk/javascript/ai-agents"},{"title":"Smart Chat Features","sidebarTitle":"Smart Chat Features","href":"/sdk/javascript/ai-copilot"},{"title":"Campaigns","href":"/sdk/javascript/campaigns"},{"title":"Webhooks","href":"/sdk/javascript/webhooks"},{"group":"Resources","pages":[{"title":"Key Concepts","href":"/sdk/javascript/key-concepts"},{"title":"Message","sidebarTitle":"Message Structure And Hierarchy","href":"/sdk/javascript/message-structure-and-hierarchy"},{"title":"All Real Time Listeners","href":"/sdk/javascript/all-real-time-listeners"},{"title":"Rate Limits","href":"/sdk/javascript/rate-limits"},{"title":"Connection Status","href":"/sdk/javascript/connection-status"},{"title":"Managing Web Sockets Connections Manually","href":"/sdk/javascript/managing-web-sockets-connections-manually"}]},{"group":"Reference","pages":[{"title":"Messages","sidebarTitle":"Messages","href":"/sdk/reference/messages"},{"title":"Entities","sidebarTitle":"Entities","href":"/sdk/reference/entities"},{"title":"Auxiliary","sidebarTitle":"Auxiliary","href":"/sdk/reference/auxiliary"},{"title":"Calls","sidebarTitle":"Calls","href":"/sdk/reference/calls"}]},{"title":"Best Practices","sidebarTitle":"Best Practices","href":"/sdk/javascript/best-practices"},{"title":"Error Codes","sidebarTitle":"Error Codes","href":"/sdk/javascript/error-codes"},{"title":"Troubleshooting","sidebarTitle":"Troubleshooting","href":"/sdk/javascript/troubleshooting"},{"title":"Upgrading From V3","href":"/sdk/javascript/upgrading-from-v3"},{"title":"Extensions","url":"/fundamentals/extensions-overview","href":"/sdk/javascript/extensions-overview"},{"title":"AI","url":"/fundamentals/ai-user-copilot/overview","href":"/sdk/javascript/ai-user-copilot-overview"},{"title":"Bots","url":"https://assets.cometchat.io/legacy-docs/ai-chatbots/ai-bots/overview.html","href":"/sdk/javascript/ai-chatbots-overview"},{"title":"Webhooks","url":"/fundamentals/webhooks","href":"/sdk/javascript/webhooks-overview"},{"title":"Changelog","url":"https://github.com/cometchat/chat-sdk-javascript/releases","href":"/sdk/javascript/changelog"}]}]},{"version":"v3","pages":[{"title":"v3","href":"/sdk/javascript/3.0/overview"}]},{"version":"v2","pages":[{"title":"v2","href":"/sdk/javascript/2.0/overview"}]}]},{"dropdown":"React Native","icon":"https://mintlify.s3.us-west-1.amazonaws.com/cometchat-22654f5b/images/icons/react.svg","versions":[{"version":"v4","groups":[{"group":" ","pages":[{"title":"React Native SDK","sidebarTitle":"Overview","href":"/sdk/react-native/overview"},{"title":"Setup","sidebarTitle":"Setup","href":"/sdk/react-native/setup-sdk"},{"title":"Authentication","sidebarTitle":"Authentication","href":"/sdk/react-native/authentication-overview"},{"group":"Messaging","pages":[{"title":"Send Messages","sidebarTitle":"Send Messages","href":"/sdk/react-native/send-message"},{"title":"Upload Files \u0026 Send Attachments","sidebarTitle":"Upload Files","href":"/sdk/react-native/upload-files"},{"title":"Receive Messages","sidebarTitle":"Receive Messages","href":"/sdk/react-native/receive-messages"},{"title":"Message Filtering","sidebarTitle":"Message Filtering","href":"/sdk/react-native/additional-message-filtering"},{"title":"Retrieve Conversations","sidebarTitle":"Retrieve Conversations","href":"/sdk/react-native/retrieve-conversations"},{"title":"Threaded Messages","sidebarTitle":"Threaded Messages","href":"/sdk/react-native/threaded-messages"},{"title":"Thread Subscription","sidebarTitle":"Thread Subscription","href":"/sdk/react-native/thread-subscription"},{"title":"Edit Message","sidebarTitle":"Edit Message","href":"/sdk/react-native/edit-message"},{"title":"Delete Message","sidebarTitle":"Delete Message","href":"/sdk/react-native/delete-message"},{"title":"Flag Message","sidebarTitle":"Flag Message","href":"/sdk/react-native/flag-message"},{"title":"Pin A Message","sidebarTitle":"Pin A Message","href":"/sdk/react-native/pin-message"},{"title":"Save A Message","sidebarTitle":"Save A Message","href":"/sdk/react-native/save-message"},{"title":"Delete Conversation","sidebarTitle":"Delete Conversation","href":"/sdk/react-native/delete-conversation"},{"title":"Pin A Conversation","sidebarTitle":"Pin A Conversation","href":"/sdk/react-native/pin-conversation"},{"title":"Typing Indicators","sidebarTitle":"Typing Indicators","href":"/sdk/react-native/typing-indicators"},{"title":"Transient Messages","sidebarTitle":"Transient Messages","href":"/sdk/react-native/transient-messages"},{"title":"Delivery \u0026 Read Receipts","sidebarTitle":"Delivery \u0026 Read Receipts","href":"/sdk/react-native/delivery-read-receipts"},{"title":"Mentions","sidebarTitle":"Mentions","href":"/sdk/react-native/mentions"},{"title":"Reactions","sidebarTitle":"Reactions","href":"/sdk/react-native/reactions"}]},{"group":"Offline Support","pages":[{"title":"Offline Support","sidebarTitle":"Offline Support","href":"/sdk/react-native/offline-overview"},{"title":"Enable Offline Support","sidebarTitle":"Enable Offline Support","href":"/sdk/react-native/offline-enable"},{"title":"Show Cached Data","sidebarTitle":"Show Cached Data","href":"/sdk/react-native/offline-cached-data"},{"title":"Send While Offline","sidebarTitle":"Send While Offline","href":"/sdk/react-native/offline-send"},{"title":"Stay in Sync","sidebarTitle":"Stay in Sync","href":"/sdk/react-native/offline-sync"},{"title":"Media Caching","sidebarTitle":"Media Caching","href":"/sdk/react-native/offline-media-caching"},{"title":"Encrypt the Cache","sidebarTitle":"Encrypt the Cache","href":"/sdk/react-native/offline-encryption"},{"title":"Offline Configuration \u0026 API Reference","sidebarTitle":"Configuration \u0026 API Reference","href":"/sdk/react-native/offline-reference"}]},{"title":"Calling","sidebarTitle":"Calling","href":"/sdk/react-native/calling-overview"},{"group":"Users","pages":[{"title":"Users","sidebarTitle":"Overview","href":"/sdk/react-native/users-overview"},{"title":"Retrieve Users","sidebarTitle":"Retrieve Users","href":"/sdk/react-native/retrieve-users"},{"title":"User Management","sidebarTitle":"User Management","href":"/sdk/react-native/user-management"},{"title":"Block Users","sidebarTitle":"Block Users","href":"/sdk/react-native/block-users"}]},{"title":"User Presence","sidebarTitle":"User Presence","href":"/sdk/react-native/user-presence"},{"group":"Groups","pages":[{"title":"Groups","sidebarTitle":"Overview","href":"/sdk/react-native/groups-overview"},{"title":"Retrieve Groups","sidebarTitle":"Retrieve Groups","href":"/sdk/react-native/retrieve-groups"},{"title":"Create A Group","sidebarTitle":"Create Group","href":"/sdk/react-native/create-group"},{"title":"Update A Group","sidebarTitle":"Update Group","href":"/sdk/react-native/update-group"},{"title":"Join A Group","sidebarTitle":"Join Group","href":"/sdk/react-native/join-group"},{"title":"Leave A Group","sidebarTitle":"Leave Group","href":"/sdk/react-native/leave-group"},{"title":"Delete A Group","sidebarTitle":"Delete Group","href":"/sdk/react-native/delete-group"},{"title":"Retrieve Group Members","sidebarTitle":"Retrieve Members","href":"/sdk/react-native/retrieve-group-members"},{"title":"Add Members To A Group","sidebarTitle":"Add Members","href":"/sdk/react-native/group-add-members"},{"title":"Ban Or Kick Member From A Group","sidebarTitle":"Kick \u0026 Ban Members","href":"/sdk/react-native/group-kick-ban-members"},{"title":"Change Member Scope","sidebarTitle":"Change Scope","href":"/sdk/react-native/group-change-member-scope"},{"title":"Transfer Group Ownership","sidebarTitle":"Transfer Ownership","href":"/sdk/react-native/transfer-group-ownership"}]},{"title":"AI Moderation","sidebarTitle":"AI Moderation","href":"/sdk/react-native/ai-moderation"},{"title":"AI Agents","sidebarTitle":"AI Agents","href":"/sdk/react-native/ai-agents"},{"title":"Campaigns","href":"/sdk/react-native/campaigns"},{"group":"Resources","pages":[{"title":"Key Concepts","href":"/sdk/react-native/key-concepts"},{"title":"Message Structure and Hierarchy","sidebarTitle":"Message Structure","href":"/sdk/react-native/message-structure-and-hierarchy"},{"title":"All Real Time Listeners","href":"/sdk/react-native/real-time-listeners"},{"title":"Rate Limits","href":"/sdk/react-native/rate-limits"},{"title":"Connection Status","href":"/sdk/react-native/connection-status"},{"title":"Managing Web Sockets Connections Manually","href":"/sdk/react-native/managing-web-sockets-connections-manually"},{"title":"Push Notification Content Customization","href":"/sdk/react-native/push-notification-html-stripping"}]},{"title":"Upgrading From V3","href":"/sdk/react-native/upgrading-from-v3"},{"title":"Extensions","url":"/fundamentals/extensions-overview","href":"/sdk/react-native/extensions-overview"},{"title":"AI","url":"/fundamentals/ai-user-copilot/overview","href":"/sdk/react-native/ai-user-copilot-overview"},{"title":"Bots","url":"https://assets.cometchat.io/legacy-docs/ai-chatbots/ai-bots/overview.html","href":"/sdk/react-native/ai-chatbots-overview"},{"title":"Webhooks","url":"/fundamentals/webhooks","href":"/sdk/react-native/webhooks-overview"},{"title":"React Native UI Kit","url":"/ui-kit/react-native/overview","href":"/sdk/react-native/react-native-overview"},{"title":"Changelog","url":"https://github.com/cometchat/chat-sdk-react-native/releases","href":"/sdk/react-native/changelog"}]}]},{"version":"v3","pages":[{"title":"v3","href":"/sdk/react-native/3.0/overview"}]},{"version":"v2","pages":[{"title":"v2","href":"/sdk/react-native/2.0/overview"}]}]},{"dropdown":"iOS","icon":"https://mintlify.s3.us-west-1.amazonaws.com/cometchat-22654f5b/images/icons/swift.svg","versions":[{"version":"v4","groups":[{"group":" ","pages":[{"title":"iOS SDK","sidebarTitle":"Overview","href":"/sdk/ios/overview"},{"title":"Setup","sidebarTitle":"Setup","href":"/sdk/ios/setup"},{"title":"Authentication","sidebarTitle":"Authentication","href":"/sdk/ios/authentication-overview"},{"group":"Messaging","pages":[{"title":"Send Messages","sidebarTitle":"Send Messages","href":"/sdk/ios/send-message"},{"title":"Upload Files \u0026 Send Attachments","sidebarTitle":"Upload Files","href":"/sdk/ios/upload-files"},{"title":"Receive Messages","sidebarTitle":"Receive Messages","href":"/sdk/ios/receive-message"},{"title":"Message Filtering","sidebarTitle":"Message Filtering","href":"/sdk/ios/additional-message-filtering"},{"title":"Retrieve Conversations","sidebarTitle":"Retrieve Conversations","href":"/sdk/ios/retrieve-conversations"},{"title":"Threaded Messages","sidebarTitle":"Threaded Messages","href":"/sdk/ios/threaded-messages"},{"title":"Thread Subscription","href":"/sdk/ios/thread-subscription"},{"title":"Edit Message","sidebarTitle":"Edit Message","href":"/sdk/ios/edit-message"},{"title":"Delete Message","sidebarTitle":"Delete Message","href":"/sdk/ios/delete-message"},{"title":"Delete Conversation","sidebarTitle":"Delete Conversation","href":"/sdk/ios/delete-conversation"},{"title":"Flag Message","sidebarTitle":"Flag Message","href":"/sdk/ios/flag-message"},{"title":"Typing Indicators","sidebarTitle":"Typing Indicators","href":"/sdk/ios/typing-indicators"},{"title":"Transient Messages","sidebarTitle":"Transient Messages","href":"/sdk/ios/transient-messages"},{"title":"Delivery \u0026 Read Receipts","sidebarTitle":"Delivery \u0026 Read Receipts","href":"/sdk/ios/delivery-read-receipts"},{"title":"Mentions","sidebarTitle":"Mentions","href":"/sdk/ios/mentions"},{"title":"Reactions","sidebarTitle":"Reactions","href":"/sdk/ios/reactions"},{"title":"Pin \u0026 Save Messages","sidebarTitle":"Pin \u0026 Save Messages","href":"/sdk/ios/pin-save-message"}]},{"group":"Offline Support","pages":[{"title":"Offline Support","sidebarTitle":"Offline Support","href":"/sdk/ios/offline-overview"},{"title":"Enable Offline Support","sidebarTitle":"Enable Offline Support","href":"/sdk/ios/offline-enable"},{"title":"Show Cached Data","sidebarTitle":"Show Cached Data","href":"/sdk/ios/offline-cached-data"},{"title":"Send While Offline","sidebarTitle":"Send While Offline","href":"/sdk/ios/offline-send"},{"title":"Stay in Sync","sidebarTitle":"Stay in Sync","href":"/sdk/ios/offline-sync"},{"title":"Media Caching","sidebarTitle":"Media Caching","href":"/sdk/ios/offline-media-caching"},{"title":"Encrypt the Cache","sidebarTitle":"Encrypt the Cache","href":"/sdk/ios/offline-encryption"},{"title":"Offline Configuration \u0026 API Reference","sidebarTitle":"Configuration \u0026 API Reference","href":"/sdk/ios/offline-reference"}]},{"title":"Calling","sidebarTitle":"Calling","href":"/sdk/ios/calling-overview"},{"group":"Users","pages":[{"title":"Users","sidebarTitle":"Overview","href":"/sdk/ios/users-overview"},{"title":"Retrieve Users","sidebarTitle":"Retrieve Users","href":"/sdk/ios/retrieve-users"},{"title":"User Management","sidebarTitle":"User Management","href":"/sdk/ios/user-management"},{"title":"Block Users","sidebarTitle":"Block Users","href":"/sdk/ios/block-users"}]},{"title":"User Presence","sidebarTitle":"User Presence","href":"/sdk/ios/user-presence"},{"group":"Groups","pages":[{"title":"Groups","sidebarTitle":"Overview","href":"/sdk/ios/groups-overview"},{"title":"Retrieve Groups","sidebarTitle":"Retrieve Groups","href":"/sdk/ios/retrieve-groups"},{"title":"Create A Group","sidebarTitle":"Create Group","href":"/sdk/ios/create-group"},{"title":"Update A Group","sidebarTitle":"Update Group","href":"/sdk/ios/update-group"},{"title":"Join A Group","sidebarTitle":"Join Group","href":"/sdk/ios/join-group"},{"title":"Leave A Group","sidebarTitle":"Leave Group","href":"/sdk/ios/leave-group"},{"title":"Delete A Group","sidebarTitle":"Delete Group","href":"/sdk/ios/delete-group"},{"title":"Add Members To A Group","sidebarTitle":"Add Members","href":"/sdk/ios/group-add-members"},{"title":"Retrieve Group Members","sidebarTitle":"Retrieve Members","href":"/sdk/ios/retrieve-group-members"},{"title":"Kick Member From A Group","sidebarTitle":"Kick \u0026 Ban Members","href":"/sdk/ios/group-kick-member"},{"title":"Change Member Scope","sidebarTitle":"Change Scope","href":"/sdk/ios/group-change-member-scope"},{"title":"Transfer Group Ownership","sidebarTitle":"Transfer Ownership","href":"/sdk/ios/transfer-group-ownership"}]},{"title":"AI Moderation","sidebarTitle":"AI Moderation","href":"/sdk/ios/ai-moderation"},{"title":"AI Agents","sidebarTitle":"AI Agents","href":"/sdk/ios/ai-agents"},{"title":"Campaigns","href":"/sdk/ios/campaigns"},{"group":"Resources","pages":[{"title":"Key Concepts","href":"/sdk/ios/key-concepts"},{"title":"Message Structure And Hierarchy","href":"/sdk/ios/message-structure-and-hierarchy"},{"title":"All Real Time Delegates (Listeners)","href":"/sdk/ios/all-real-time-delegates-listeners"},{"title":"Rate Limits","href":"/sdk/ios/rate-limits"},{"title":"Connection Status","sidebarTitle":"Connection Status","href":"/sdk/ios/connection-status"},{"title":"Managing Web Socket Connections Manually","href":"/sdk/ios/managing-web-socket-connections-manually"},{"title":"Connection Behaviour","href":"/sdk/ios/web-socket-connection-behaviour"},{"title":"Marking Delivered From Push Notification","href":"/sdk/ios/marking-delivered-with-push-notification"},{"title":"Increment App Icon Badge Count","href":"/sdk/ios/increment-app-icon-badge-count"},{"title":"Remove Delivered Notifications","href":"/sdk/ios/remove-delivered-notifications"},{"title":"Launch Call Screen On Tap Of Push Notification","href":"/sdk/ios/launch-call-screen-on-tap-of-push-notification"},{"title":"Launch Chat Window On Tap Of Push Notification","href":"/sdk/ios/launch-chat-window-on-tap-of-push-notification"},{"title":"Prepare Your App For Background Updates","href":"/sdk/ios/prepare-your-app-for-background-updates"},{"title":"Publishing App On App Store","href":"/sdk/ios/publishing-app-on-appstore"}]},{"title":"Upgrading From V3","href":"/sdk/ios/upgrading-from-v3-to-v4"},{"title":"Extensions","url":"/fundamentals/extensions-overview","href":"/sdk/ios/extensions-overview"},{"title":"AI","url":"/fundamentals/ai-user-copilot/overview","href":"/sdk/ios/ai-user-copilot-overview"},{"title":"Bots","url":"https://assets.cometchat.io/legacy-docs/ai-chatbots/ai-bots/overview.html","href":"/sdk/ios/ai-chatbots-overview"},{"title":"Webhooks","url":"/fundamentals/webhooks","href":"/sdk/ios/webhooks-overview"},{"title":"iOS UI Kit","url":"/ui-kit/ios/overview","href":"/sdk/ios/ios-overview"},{"title":"Changelog","url":"https://github.com/cometchat/chat-sdk-ios/releases","href":"/sdk/ios/changelog"}]}]},{"version":"v3","pages":[{"title":"v3","href":"/sdk/ios/3.0/overview"}]},{"version":"v2","pages":[{"title":"v2","href":"/sdk/ios/2.0/overview"}]}]},{"dropdown":"Android","icon":"https://mintlify.s3.us-west-1.amazonaws.com/cometchat-22654f5b/images/icons/android.svg","versions":[{"version":"v5","groups":[{"group":" ","pages":[{"group":"Overview","pages":[{"title":"Overview","href":"/sdk/android/overview"},{"title":"Key Concepts","href":"/sdk/android/key-concepts"},{"title":"Message Structure And Hierarchy","href":"/sdk/android/message-structure-and-hierarchy"},{"title":"Rate Limits","href":"/sdk/android/rate-limits"}]},{"title":"Setup","href":"/sdk/android/setup"},{"group":"Authentication","pages":[{"title":"Authentication","sidebarTitle":"Overview","href":"/sdk/android/authentication-overview"},{"title":"Login Listeners","href":"/sdk/android/login-listeners"}]},{"group":"Messaging","pages":[{"title":"Messaging","sidebarTitle":"Overview","href":"/sdk/android/messaging-overview"},{"title":"Send A Message","href":"/sdk/android/send-message"},{"title":"Upload Files \u0026 Send Attachments","sidebarTitle":"Upload Files","href":"/sdk/android/upload-files"},{"title":"Receive A Message","href":"/sdk/android/receive-messages"},{"title":"Additional Message Filtering","href":"/sdk/android/additional-message-filtering"},{"title":"Retrieve Conversations","href":"/sdk/android/retrieve-conversations"},{"title":"Threaded Messages","href":"/sdk/android/threaded-messages"},{"title":"Thread Subscription","sidebarTitle":"Thread Subscription","href":"/sdk/android/thread-subscription"},{"title":"Edit A Message","href":"/sdk/android/edit-message"},{"title":"Delete A Message","href":"/sdk/android/delete-message"},{"title":"Flag Message","href":"/sdk/android/flag-message"},{"title":"Pin A Message","sidebarTitle":"Pin A Message","href":"/sdk/android/pin-message"},{"title":"Save A Message","sidebarTitle":"Save A Message","href":"/sdk/android/save-message"},{"title":"Delete A Conversation","href":"/sdk/android/delete-conversation"},{"title":"Pin A Conversation","sidebarTitle":"Pin A Conversation","href":"/sdk/android/pin-conversation"},{"title":"Typing Indicators","href":"/sdk/android/typing-indicators"},{"title":"Delivery \u0026 Read Receipts","href":"/sdk/android/delivery-read-receipts"},{"title":"Transient Messages","href":"/sdk/android/transient-messages"},{"title":"Mentions","href":"/sdk/android/mentions"},{"title":"Reactions","href":"/sdk/android/reactions"}]},{"group":"Offline Support","pages":[{"title":"Offline Support","sidebarTitle":"Offline Support","href":"/sdk/android/offline-overview"},{"title":"Enable Offline Support","sidebarTitle":"Enable Offline Support","href":"/sdk/android/offline-enable"},{"title":"Show Cached Data","sidebarTitle":"Show Cached Data","href":"/sdk/android/offline-cached-data"},{"title":"Send While Offline","sidebarTitle":"Send While Offline","href":"/sdk/android/offline-send"},{"title":"Stay in Sync","sidebarTitle":"Stay in Sync","href":"/sdk/android/offline-sync"},{"title":"Media Caching","sidebarTitle":"Media Caching","href":"/sdk/android/offline-media-caching"},{"title":"Encrypt the Cache","sidebarTitle":"Encrypt the Cache","href":"/sdk/android/offline-encryption"},{"title":"Offline Configuration \u0026 API Reference","sidebarTitle":"Configuration \u0026 API Reference","href":"/sdk/android/offline-reference"}]},{"title":"Calling","sidebarTitle":"Calling","href":"/sdk/android/calling-overview"},{"group":"Users","pages":[{"title":"Users","sidebarTitle":"Overview","href":"/sdk/android/users-overview"},{"title":"Retrieve Users","href":"/sdk/android/retrieve-users"},{"title":"User Management","href":"/sdk/android/user-management"},{"title":"Block Users","href":"/sdk/android/block-users"}]},{"title":"User Presence","href":"/sdk/android/user-presence"},{"group":"Groups","pages":[{"title":"Groups","sidebarTitle":"Overview","href":"/sdk/android/groups-overview"},{"title":"Retrieve Groups","href":"/sdk/android/retrieve-groups"},{"title":"Create A Group","href":"/sdk/android/create-group"},{"title":"Update A Group","href":"/sdk/android/update-group"},{"title":"Join A Group","href":"/sdk/android/join-group"},{"title":"Leave A Group","href":"/sdk/android/leave-group"},{"title":"Delete A Group","href":"/sdk/android/delete-group"},{"title":"Retrieve Group Members","href":"/sdk/android/retrieve-group-members"},{"title":"Add Members To A Group","href":"/sdk/android/group-add-members"},{"title":"Ban/Kick Member From A Group","href":"/sdk/android/group-kick-member"},{"title":"Change Member Scope","href":"/sdk/android/group-change-member-scope"},{"title":"Transfer Group Ownership","href":"/sdk/android/transfer-group-ownership"}]},{"title":"AI Moderation","href":"/sdk/android/ai-moderation"},{"title":"AI Agents","href":"/sdk/android/ai-agents"},{"title":"Campaigns","href":"/sdk/android/campaigns"},{"group":"Resources","pages":[{"title":"Resources","href":"/sdk/android/resources-overview"},{"title":"All Real Time Listeners","href":"/sdk/android/real-time-listeners"},{"title":"Upgrading from v4","sidebarTitle":"Upgrading from v4","href":"/sdk/android/upgrading-from-v4"}]},{"group":"Advanced","pages":[{"title":"Advanced","sidebarTitle":"Overview","href":"/sdk/android/advanced-overview"},{"title":"Connection Status","href":"/sdk/android/connection-status"},{"title":"Publishing App On PlayStore","href":"/sdk/android/publishing-app-on-playstore"},{"title":"Connection Behaviour","href":"/sdk/android/connection-behaviour"}]},{"title":"Extensions","url":"/fundamentals/extensions-overview","href":"/sdk/android/extensions-overview"},{"title":"AI","url":"/fundamentals/ai-user-copilot/overview","href":"/sdk/android/ai-user-copilot-overview"},{"title":"AI","url":"https://assets.cometchat.io/legacy-docs/ai-chatbots/ai-bots/overview.html","href":"/sdk/android/ai-chatbots-overview"},{"title":"Webhooks","url":"/fundamentals/webhooks","href":"/sdk/android/webhooks-overview"},{"title":"Java UI Kit","url":"/ui-kit/android/overview","href":"/sdk/android/android-overview"},{"title":"Changelog","url":"https://github.com/cometchat/chat-sdk-android/releases","href":"/sdk/android/changelog"}]}]},{"version":"v4","pages":[{"title":"v4","href":"/sdk/android/v4/overview"}]},{"version":"v3","pages":[{"title":"v3","href":"/sdk/android/3.0/overview"}]},{"version":"v2","pages":[{"title":"v2","href":"/sdk/android/2.0/overview"}]}]},{"dropdown":"Flutter","icon":"https://mintlify.s3.us-west-1.amazonaws.com/cometchat-22654f5b/images/icons/flutter.svg","versions":[{"version":"v5","groups":[{"group":" ","pages":[{"title":"Chat SDK","sidebarTitle":"Overview","href":"/sdk/flutter/overview"},{"title":"Setup","href":"/sdk/flutter/setup"},{"group":"Authentication","pages":[{"title":"Authentication","sidebarTitle":"Overview","href":"/sdk/flutter/authentication-overview"},{"title":"Login Listeners","href":"/sdk/flutter/login-listeners"}]},{"group":"Messaging","pages":[{"title":"Messaging","sidebarTitle":"Overview","href":"/sdk/flutter/messaging-overview"},{"title":"Send A Message","href":"/sdk/flutter/send-message"},{"title":"Upload Files \u0026 Send Attachments","sidebarTitle":"Upload Files","href":"/sdk/flutter/upload-files"},{"title":"Receive A Message","href":"/sdk/flutter/receive-messages"},{"title":"Additional Message Filtering","href":"/sdk/flutter/additional-message-filtering"},{"title":"Retrieve Conversations","href":"/sdk/flutter/retrieve-conversations"},{"title":"Threaded Messages","href":"/sdk/flutter/threaded-messages"},{"title":"Thread Subscription","href":"/sdk/flutter/thread-subscription"},{"title":"Edit A Message","href":"/sdk/flutter/edit-message"},{"title":"Flag Message","href":"/sdk/flutter/flag-message"},{"title":"Delete A Message","href":"/sdk/flutter/delete-message"},{"title":"Pin A Message","href":"/sdk/flutter/pin-message"},{"title":"Save A Message","href":"/sdk/flutter/save-message"},{"title":"Delete A Conversation","href":"/sdk/flutter/delete-conversation"},{"title":"Pin A Conversation","href":"/sdk/flutter/pin-conversation"},{"title":"Typing Indicators","href":"/sdk/flutter/typing-indicators"},{"title":"Transient Messages","sidebarTitle":"Transient Messages","href":"/sdk/flutter/transient-messages"},{"title":"Delivery \u0026 Read Receipts","href":"/sdk/flutter/delivery-read-receipts"},{"title":"Mentions","href":"/sdk/flutter/mentions"},{"title":"Reactions","href":"/sdk/flutter/reactions"}]},{"group":"Offline Support","pages":[{"title":"Offline Support","sidebarTitle":"Offline Support","href":"/sdk/flutter/offline-overview"},{"title":"Enable Offline Support","sidebarTitle":"Enable Offline Support","href":"/sdk/flutter/offline-enable"},{"title":"Show Cached Data","sidebarTitle":"Show Cached Data","href":"/sdk/flutter/offline-cached-data"},{"title":"Send While Offline","sidebarTitle":"Send While Offline","href":"/sdk/flutter/offline-send"},{"title":"Stay in Sync","sidebarTitle":"Stay in Sync","href":"/sdk/flutter/offline-sync"},{"title":"Media Caching","sidebarTitle":"Media Caching","href":"/sdk/flutter/offline-media-caching"},{"title":"Encrypt the Cache","sidebarTitle":"Encrypt the Cache","href":"/sdk/flutter/offline-encryption"},{"title":"Offline Configuration \u0026 API Reference","sidebarTitle":"Configuration \u0026 API Reference","href":"/sdk/flutter/offline-reference"}]},{"group":"Users","pages":[{"title":"Users","sidebarTitle":"Overview","href":"/sdk/flutter/users-overview"},{"title":"Retrieve Users","href":"/sdk/flutter/retrieve-users"},{"title":"User Management","href":"/sdk/flutter/user-management"},{"title":"Block Users","href":"/sdk/flutter/block-users"}]},{"title":"User Presence","href":"/sdk/flutter/user-presence"},{"group":"Groups","pages":[{"title":"Groups","sidebarTitle":"Overview","href":"/sdk/flutter/groups-overview"},{"title":"Retrieve Groups","href":"/sdk/flutter/retrieve-groups"},{"title":"Create A Group","href":"/sdk/flutter/create-group"},{"title":"Update A Group","href":"/sdk/flutter/update-group"},{"title":"Join A Group","href":"/sdk/flutter/join-group"},{"title":"Leave A Group","href":"/sdk/flutter/leave-group"},{"title":"Delete A Group","href":"/sdk/flutter/delete-group"},{"title":"Retrieve Group Members","href":"/sdk/flutter/retrieve-group-members"},{"title":"Add Members To A Group","href":"/sdk/flutter/group-add-members"},{"title":"Ban/Kick Member From A Group","href":"/sdk/flutter/group-kick-member"},{"title":"Change Member Scope","href":"/sdk/flutter/group-change-member-scope"},{"title":"Transfer Group Ownership","href":"/sdk/flutter/transfer-group-ownership"}]},{"title":"AI Moderation","href":"/sdk/flutter/ai-moderation"},{"title":"AI Agents","href":"/sdk/flutter/ai-agents"},{"title":"Campaigns","href":"/sdk/flutter/campaigns"},{"group":"Resources","pages":[{"title":"Resources","sidebarTitle":"Overview","href":"/sdk/flutter/resources-overview"},{"title":"All Real Time Listeners","href":"/sdk/flutter/real-time-listeners"}]},{"group":"Advanced","pages":[{"title":"Advanced","sidebarTitle":"Overview","href":"/sdk/flutter/advanced-overview"},{"title":"Connection Status","href":"/sdk/flutter/connection-status"},{"title":"Connection Behaviour","href":"/sdk/flutter/connection-behaviour"}]},{"title":"Upgrading from v4","href":"/sdk/flutter/upgrading-from-v4-guide"},{"title":"Extensions","url":"/fundamentals/extensions-overview","href":"/sdk/flutter/extensions-overview"},{"title":"AI","url":"/fundamentals/ai-user-copilot/overview","href":"/sdk/flutter/ai-user-copilot-overview"},{"title":"Bots","url":"https://assets.cometchat.io/legacy-docs/ai-chatbots/ai-bots/overview.html","href":"/sdk/flutter/ai-chatbots-overview"},{"title":"Webhooks","url":"/fundamentals/webhooks","href":"/sdk/flutter/webhooks-overview"},{"title":"Flutter Chat UI Kit","url":"/ui-kit/flutter/overview","href":"/sdk/flutter/flutter-overview"},{"title":"Changelog","url":"https://github.com/cometchat/chat-sdk-flutter/releases","href":"/sdk/flutter/changelog"}]}]},{"version":"v4","pages":[{"title":"v4","href":"/sdk/flutter/v4/overview"}]},{"version":"v3","pages":[{"title":"v3","href":"/sdk/flutter/3.0/overview"}]}]},{"dropdown":"Unreal Engine","icon":"https://mintlify.s3.us-west-1.amazonaws.com/cometchat-22654f5b/images/icons/unreal.svg","pages":[{"title":"Overview","href":"/sdk/unreal/overview"},{"title":"Setup","href":"/sdk/unreal/setup"},{"title":"Key Concepts","href":"/sdk/unreal/key-concepts"},{"group":"Authentication","pages":[{"title":"Overview","href":"/sdk/unreal/authentication"}]},{"group":"Messaging","pages":[{"title":"Send a Message","href":"/sdk/unreal/send-message"},{"title":"Receive Messages","href":"/sdk/unreal/receive-messages"},{"title":"Real-Time Events","href":"/sdk/unreal/real-time-events"},{"title":"Typing Indicators","href":"/sdk/unreal/typing-indicators"},{"title":"Delivery \u0026 Read Receipts","href":"/sdk/unreal/delivery-read-receipts"},{"title":"Connection Status","href":"/sdk/unreal/connection-status"}]},{"group":"Users \u0026 Groups","pages":[{"title":"Users","href":"/sdk/unreal/users"},{"title":"Groups","href":"/sdk/unreal/groups"}]},{"group":"Reference","pages":[{"title":"API Reference","href":"/sdk/unreal/reference"}]}]},{"dropdown":"Ionic (Legacy)","icon":"https://mintlify.s3.us-west-1.amazonaws.com/cometchat-22654f5b/images/icons/ionic.svg","pages":[{"title":"Ionic SDK (Legacy)","href":"/sdk/ionic-legacy/overview"}]}]},{"tab":"APIs","pages":[{"title":"APIs","href":"/rest-api/chat-apis"}]}]},{"product":"Voice \u0026 Video Calling","pages":[{"title":"Voice \u0026 Video Calling","href":"/calls"}]},{"product":"AI Agents","pages":[{"title":"AI Agents","href":"/ai-agents"}]},{"product":"AI Moderation","pages":[{"title":"AI Moderation","href":"/moderation/overview"}]},{"product":"Notifications","pages":[{"title":"Notifications","href":"/notifications"}]},{"product":"Campaigns","pages":[{"title":"Campaigns","href":"/campaigns"}]},{"product":"Insights","pages":[{"title":"Insights","href":"/insights"}]}]},"basePath":"","title":"Users - CometChat Docs","deploymentId":"dpl_4jsQX6wxBTKTWBK49utMnZg6AX9Q","buildId":"dpl_4jsQX6wxBTKTWBK49utMnZg6AX9Q","dynamics":["07c022d89b","a74be98ba7"],"chunks":["Frame-Dseijy1r.js","DynamicMarkdown-BpzBQATn.js","zoom-image-lightbox-G1zPyUGO.js","lightbox-handle-r17bVUz3.js"]}