iOS UI Kit v6 — LLM docs index (Latest)
Stateful, drop-in iOS chat and calling UI. One Swift package,https://github.com/cometchat/cometchat-uikit-ios.gitfrom6.0.0-beta.1(SPM only, iOS 18, Swift 6), with two toolkits — add exactly one product:CometChatSwiftUI(SwiftUI) orCometChatUIKit(native UIKit). Both sit onCometChatCoreand the iOS Chat SDK 4.x (CometChatSDK). This page is an iOS-v6-only routing index for AI agents.
How to use this index
Each link points to the docs page; append.md to its URL to fetch the clean Markdown twin
(verbatim code and API names). Pick the page for the intent, then read the API there.
- Convention: any docs page URL +
.md→ raw Markdown. - Fallback: if a
.mdtwin 404s, fetch the same URL without.md. Never answer APIs from memory. - Two toolkits, one docs tree: nearly every page carries a
SwiftUItab and aUIKittab — read the tab matching the app. The toolkits spell options differently on purpose (SwiftUIhideBackIcon,trailingView; UIKithideBackButton,trailView); never mix them. - Version trap:
/ui-kit/ios/v6/<page>is v6./ui-kit/ios/<page>is the legacy v5CometChatUIKitSwift(CocoaPods/xcframework) tree — never read it for a v6 build.
Hot path — usually no fetch needed
- Package:
.package(url: "https://github.com/cometchat/cometchat-uikit-ios.git", from: "6.0.0-beta.1"), productCometChatSwiftUIorCometChatUIKit. - Set-up:
try await CometChatSession.initialize(appID:region:)thentry await CometChatSession.login(uid:authKey:)(development) orlogin(authToken:). Either toolkit’s import bringsCometChatSession(both re-exportCometChatCore). - The Kit has no chat screen: compose
CometChatMessageHeader+CometChatMessageList+CometChatMessageComposergiven aUserorGroup, and open it fromonItemClick. - Setup (pick the toolkit): SwiftUI · UIKit
- Core drop-ins: Conversations · Conversation + Message View · Message Header · Message List · Message Composer
Getting started / integration
- Overview — choosing a product
- Getting Started
- SwiftUI Integration
- UIKit Integration
- One-to-One / Group Chat recipe
- Tab-Based Chat recipe
- Calling Integration
- Architecture & Data Flow
- Components Overview
Core & configuration
- Core Features
- Extensions
- Smart / AI Features
- Call Features
- Methods (reference)
- Events (reference)
- Troubleshooting
Theming
- Theming — Introduction
- Color Resources
- Component Styling
- Message Bubble Styling
- Localization
- Sound Manager
Customization
- Customization — Overview
- View Slots
- Styles
- Stores & Data
- Events
- State Views
- Text Formatters
- Menu Options
Components — conversations & lists
Components — messages
- Message Header
- Message List
- Message Composer
- Message Template
- Threaded Messages Header
- Pinned Messages
- Saved Messages
- Create Poll · Sticker Keyboard · Emoji Keyboard · Reaction List · Message Information · Flag Message
Components — calling
Task guides (recipes)
- Guides — Overview
- Threaded Messages (incl. Thread Subscription)
- Pin & Save Messages
- Block / Unblock User
- New Chat
- Message Privately
- Call Log Details
- Group Management
- Search Messages
- AI Agent
- Text Formatter Base Class
- Mentions Formatter
- Shortcut Formatter
- Color Selected Text — not supported in v6; the page says what is
Something is broken — symptom to page
Match the symptom, not the component.When the UI Kit is not the answer — drop to the Chat SDK
The Kit ships no component for blocking, creating groups, adding members, transferring ownership, unread counts or webhooks. Those are SDK calls — the SDK is already installed under the Kit. Never guess a method name:- iOS Chat SDK v4 — scoped LLM index: llms-ios-v4
- The iOS Chat SDK’s major version is 4; there is no “v5 Chat SDK for iOS”.
/sdk/ios/<page>is the current SDK. - After an SDK call that changes what the Kit shows, emit the matching event — see Events.
Feature switched on OUTSIDE the app — dashboard, extensions, AI
A feature will not work without these, however correct the client code is.- Start here: Extensions overview · Key concepts
- Message extensions: Polls · Stickers · Collaborative whiteboard · Collaborative document · Link preview · Message translation · Thumbnail generation
- AI (user copilot): Overview · Smart replies · Conversation starter · Conversation summary
- AI agents: AI agents — pair with the UI-Kit AI agent guide
- Moderation: Moderation extensions · Overview · Flagged messages
Push notifications (iOS)
The UI Kit renders nothing for push — it is a dashboard + APNs integration.Campaigns, auth & webhooks
- Auth & permissions: User auth · Roles & permissions · Mentions
- Server-side hooks: Webhooks overview · Call webhooks