Skip to main content
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.
SceneDelegate.swift

Step 2: Setup Tab Bar

Create a method to display the tab layout.
SceneDelegate.swift

Step 3: Create MessagesVC.swift

This view controller handles chat between users or within groups.
MessagesVC.swift

Next Steps

Enhance the User Experience