Skip to main content

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.git from 6.0.0-beta.1 (SPM only, iOS 18, Swift 6), with two toolkits — add exactly one product: CometChatSwiftUI (SwiftUI) or CometChatUIKit (native UIKit). Both sit on CometChatCore and 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 .md twin 404s, fetch the same URL without .md. Never answer APIs from memory.
  • Two toolkits, one docs tree: nearly every page carries a SwiftUI tab and a UIKit tab — read the tab matching the app. The toolkits spell options differently on purpose (SwiftUI hideBackIcon, trailingView; UIKit hideBackButton, trailView); never mix them.
  • Version trap: /ui-kit/ios/v6/<page> is v6. /ui-kit/ios/<page> is the legacy v5 CometChatUIKitSwift (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"), product CometChatSwiftUI or CometChatUIKit.
  • Set-up: try await CometChatSession.initialize(appID:region:) then try await CometChatSession.login(uid:authKey:) (development) or login(authToken:). Either toolkit’s import brings CometChatSession (both re-export CometChatCore).
  • The Kit has no chat screen: compose CometChatMessageHeader + CometChatMessageList + CometChatMessageComposer given a User or Group, and open it from onItemClick.
  • Setup (pick the toolkit): SwiftUI · UIKit
  • Core drop-ins: Conversations · Conversation + Message View · Message Header · Message List · Message Composer

Getting started / integration

Core & configuration

Theming

Customization

Components — conversations & lists

Components — messages

Components — calling

Task guides (recipes)

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.

Push notifications (iOS)

The UI Kit renders nothing for push — it is a dashboard + APNs integration.

Campaigns, auth & webhooks

Migration & misc