Skip to main content
Quick Reference for AI Agents & Developers
// 1. Install via CocoaPods
// pod 'CometChatUIKitSwift', '5.1.7'

// 2. Initialize
let uikitSettings = UIKitSettings()
    .set(appID: "APP_ID")
    .set(region: "REGION")
    .set(authKey: "AUTH_KEY")
    .build()

CometChatUIKit.init(uiKitSettings: uikitSettings) { result in
    // 3. Login
    CometChatUIKit.login(uid: "cometchat-uid-1") { _ in }
}
The CometChat UI Kit for iOS provides a seamless solution to integrate chat functionality into your iOS applications. With prebuilt, modular, and customizable UI components, it accelerates development and ensures your chat application is robust, scalable, and tailored to your needs.
CometChatUIKit.init() must be called before rendering any UI Kit components or calling any SDK methods. Initialization must complete before login.
Auth Key is for development/testing only. In production, generate Auth Tokens on your server using the REST API and pass them to the client. Never expose Auth Keys in production client code.

Why Choose CometChat UI Kit?

  • Effortless Integration – Ready-to-use SwiftUI components for rapid implementation.
  • Highly Customizable – Adapt UI components easily to match your brand and user experience requirements.
  • Built on Core SDK – Leverages the powerful CometChat iOS SDK for reliable performance.
  • Scalable & Reliable – Optimized for enterprise-grade applications.

User Interface Preview


Download the CometChat Demo App

Get started with the CometChat UI Kit on your mobile device: Download from the App Store Or Scan the QR Code
Tip: On iOS, simply open the camera app and scan the QR code to install directly.

Getting Started

Before integrating the CometChat UI Kit, familiarize yourself with the key concepts and features offered by CometChat’s platform.

Integration and Customization

The CometChat UI Kit consists of modular SwiftUI components that can be integrated effortlessly into your app, offering flexible customization:
  • Prebuilt UI Components: Ready-to-use chat UI elements.
  • Modular Structure: Easy to integrate and modify.
  • Customization Options: Highly configurable to fit your brand and UI requirements.
Explore more about UI customization in the Customization Guide.

Helpful Resources

Explore these essential resources to gain a deeper understanding of CometChat UI Kits and streamline your integration process.

🚀 iOS Sample App

Fully functional sample applications to accelerate your development. View on GitHub

📦 UI Kit Source Code

Access the complete UI Kit source code on GitHub. View on GitHub

🎨 Figma Design File

UI design resources for customization and prototyping. View on Figma

💡 Need Help?

If you need assistance, check out:

Next Steps