Skip to main content
Quick Reference for AI Agents & Developers
This guide walks you through creating a tab-based messaging interface in your iOS application using CometChat UI Kit for iOS. The UI includes tabs for Chats, Calls, Users, and Groups, offering an organized and fluid experience.

User Interface Preview

This layout contains:
  1. Conversations – Lists all recent chats.
  2. Calls – Displays call logs.
  3. Users – Lists available users.
  4. Groups – Lists available groups.

Step-by-Step Guide

Step 1: Initialize UIKit in SceneDelegate.swift

Ensure UIKit is initialized and the user is logged in before presenting the tabbed view. See the Integration Guide for full init and login setup.
SceneDelegate.swift

Step 2: Setup Tab Bar

Create a method to display the tab layout using CometChatConversations, CometChatCallLogs, CometChatUsers, and CometChatGroups.
SceneDelegate.swift

Step 3: Create MessagesVC.swift

This view controller handles chat between users or within groups. It composes three core UI Kit components: CometChatMessageHeader, CometChatMessageList, and CometChatMessageComposer.
MessagesVC.swift

Next Steps

Conversation List + Messages

Two-panel layout with conversation list and message view

One-to-One Chat

Launch directly into a specific user or group chat

Theme Introduction

Customize colors, fonts, and styles to match your brand

Components Overview

Explore all available UI components