Skip to main content

Overview

This guide walks you through adding voice and video calling capabilities to your iOS application using the CometChat UI Kit.
Make sure you’ve completed the Getting Started guide before proceeding.

Add the Calls SDK

You can install the CometChat Calls SDK using either CocoaPods or Swift Package Manager.
  • CometChatCallsSDK supports iOS 13 and above
  • CometChatCallsSDK supports Swift 5.0+

Option 1: CocoaPods

Open a terminal window, navigate to your project directory, and create a Podfile:
$ pod init
Add the following lines to the Podfile:
platform :ios, '13.0'
use_frameworks!

target 'YourApp' do
  pod 'CometChatUIKitSwift', '4.3.15'
  pod 'CometChatCallsSDK', '4.0.6'
end
Install the dependencies:
$ pod install
If you encounter issues, try:
$ pod install --repo-update
To update to the latest version:
$ pod update CometChatCallsSDK
Always open the .xcworkspace file after adding the dependencies.

Option 2: Swift Package Manager

  1. Go to File → Add Packages in Xcode
  2. Add the CometChat Calls SDK repository:
https://github.com/cometchat/calls-sdk-ios.git
  1. Select Version Rules, enter the version (e.g., 4.0.5), and click Next
Make sure you have completed the Chat UI Kit integration before adding the Calls SDK.

Verify Integration

After adding the dependency, the iOS UI Kit will automatically detect it and activate calling features. You will see CallButtons rendered in the MessageHeader component.