Note
Version 4 CometChat UI Kits
We’ve introduced a major update to CometChat UI kits. Version 4 features a modular architecture that gives you enhanced flexibility to build and customize your web and mobile apps. Please switch to the branch v4 to check out the sample app based on this version. Visit our documentation to read more about this.
iOS Swift Chat App
CometChat Kitchen Sink Sample App (built using CometChat UIKit) is a fully functional messaging app capable of one-on-one (private) and group messaging as well as Calling. This sample app enables users to send text and multimedia messages like images, videos, documents. Also, users can make Audio and Video calls to other users or groups.
Prerequisites
Before you begin, ensure you have met the following requirements:
-
You have installed the latest version of Xcode. (Above Xcode 12 Recommended)
-
iOS Swift Chat App works for the iOS devices from iOS 11 and above.
NOTE: Please install the latest pod version on your Mac to avoid integration issues
Please follow the below steps:
sudo gem update cocoapods --pre
pod update
clean
build
Installing iOS Swift Chat App
-
Simply clone the project from ios-swift-chat-app repository. After cloning the repository:
-
Navigate to project's folder and use below command to install the require dependancies.
$ pod install
-
If you're facing any issues while installing pods, then kindly use the below command to install dependancies.
pod install --repo-update
-
Build and run the Sample App.
Running the sample app
To Run to sample app you have to do the following changes by Adding AppID, AuthKey and Region.
You can obtain your App ID, Auth Key and Region from CometChat-Pro Dashboard. Create new app and head over to the Quick Start or API & Auth Keys section and note the App ID
, Auth Key
, and Region
.
-
Open the project in Xcode.
-
Go to CometChatSwift --> AppConstants.swift.
-
Modify App ID and Auth Key and Region with your own App ID, Auth Key and Region.
-
Select demo users or enter the UID at the time of login once the app is launched.
Add UI Kit to your project
Learn more about how to integrate UI Kit inside your app.
Troubleshooting
-
To read the full dcoumentation on UI Kit integration visit our Documentation .
-
Facing any issues while integrating or installing the UI Kit please connect with us via real time support present in CometChat Dashboard.
Contributors
Thanks to the following people who have contributed to this project:
@pushpsenairekar2911 👨💻
@ghanshyammansata 👨💻
@jeetkapadia 👨💻
@NishantTiwarins 👨💻
@AbdullahAnsarri 👨💻
@ajayv-cometchat 👨💻
Contact
Contact us via real time support present in CometChat Dashboard.
License
This project uses the following license.