All Projects → cometchat-pro → ios-swift-chat-ui-kit

cometchat-pro / ios-swift-chat-ui-kit

Licence: MIT License
Ready-to-use Chat UI Components for Swift (iOS)

Programming Languages

swift
15916 projects
objective c
16641 projects - #2 most used programming language

Projects that are alternatives of or similar to ios-swift-chat-ui-kit

ios-swift-chat-app
Open-source Voice & Video Calling and Text Chat App for Swift (iOS)
Stars: ✭ 111 (+164.29%)
Mutual labels:  conference, messaging, voice, calling
Android Kotlin Chat App
Open-source Voice & Video Calling and Text Chat App for Kotlin (Android)
Stars: ✭ 76 (+80.95%)
Mutual labels:  conference, messaging, voice
Android Java Chat App
Open-source Voice & Video Calling and Text Chat App for Java (Android)
Stars: ✭ 66 (+57.14%)
Mutual labels:  conference, messaging, voice
Vonage Python Sdk
Vonage Server SDK for Python. API support for SMS, Voice, Text-to-Speech, Numbers, Verify (2FA) and more.
Stars: ✭ 134 (+219.05%)
Mutual labels:  messaging, voice
Vonage Node Sdk
Vonage API client for Node.js. API support for SMS, Voice, Text-to-Speech, Numbers, Verify (2FA) and more.
Stars: ✭ 323 (+669.05%)
Mutual labels:  messaging, voice
Vonage Php Sdk Core
Vonage REST API client for PHP. API support for SMS, Voice, Text-to-Speech, Numbers, Verify (2FA) and more.
Stars: ✭ 849 (+1921.43%)
Mutual labels:  messaging, voice
Vonage Ruby Sdk
Vonage REST API client for Ruby. API support for SMS, Voice, Text-to-Speech, Numbers, Verify (2FA) and more.
Stars: ✭ 203 (+383.33%)
Mutual labels:  messaging, voice
Javascript React Chat App
Open-source Voice & Video Calling and Text Chat App for React (JavaScript/Web)
Stars: ✭ 59 (+40.48%)
Mutual labels:  conference, voice
Vonage Java Sdk
Vonage Server SDK for Java. API support for SMS, Voice, Text-to-Speech, Numbers, Verify (2FA) and more.
Stars: ✭ 75 (+78.57%)
Mutual labels:  messaging, voice
plivo-python
A Python library for communicating with the Plivo API and generating Plivo XML.
Stars: ✭ 57 (+35.71%)
Mutual labels:  messaging, voice
eventide-postgres
Event Sourcing and Microservices Stack for Ruby
Stars: ✭ 92 (+119.05%)
Mutual labels:  messaging
MaterialDayPicker
An elegant day of the week picker inspired by Google's clock app
Stars: ✭ 59 (+40.48%)
Mutual labels:  ui-components
saltychat-fivem
FiveM implementation of Salty Chat (TeamSpeak 3 based Voice Plugin)
Stars: ✭ 64 (+52.38%)
Mutual labels:  voice
clarity-react
React Components for VMware Clarity UI and Clarity Design
Stars: ✭ 33 (-21.43%)
Mutual labels:  ui-components
jfastnet
Fast, reliable UDP messaging for Java. Designed for games.
Stars: ✭ 26 (-38.1%)
Mutual labels:  messaging
CherryLib
Win32/MFC UI Control, Live Update, Utility Library
Stars: ✭ 19 (-54.76%)
Mutual labels:  ui-components
vonage-node-code-snippets
NodeJS code examples for using Nexmo
Stars: ✭ 46 (+9.52%)
Mutual labels:  voice
gm 8bit
Audio interception utils for garry's mod
Stars: ✭ 28 (-33.33%)
Mutual labels:  voice
CPP-Call-Tensorflow
Calling (TensorFlow) Python Program from C++
Stars: ✭ 49 (+16.67%)
Mutual labels:  calling
spokestack-android
Extensible Android mobile voice framework: wakeword, ASR, NLU, and TTS. Easily add voice to any Android app!
Stars: ✭ 52 (+23.81%)
Mutual labels:  voice


iOS Chat UI Kit



The UI Kit library is collection of custom UI Components and UI Screens design to build chat application within few minutes. UI kit is designed to avoid boilerplate code for building UI,it has three different ways to build a chat application with fully customizable UI. It will help developers to build a chat application within using various UI Components.


Prerequisites

Before you begin, ensure you have met the following requirements:

  • You have installed the latest version of Xcode. (Above Xcode 12 Recommended)

  • iOS Chat UI Kit 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

NOTE: If you're building the new project, the please add below line in AppDelegate.swift

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
    
 var window: UIWindow?

}

Installing iOS Chat UI Kit

1. Setup

To install iOS UI Kit, you need to first register on CometChat Dashboard. Click here to sign up.

i. Get your Application Keys

  • Create a new app
  • Head over to the Quick Start or API & Auth Keys section and note the App ID, Auth Key, and Region.

ii. Add the CometChat Dependency

We recommend using CocoaPods, as they are the most advanced way of managing iOS project dependencies. Open a terminal window, move to your project directory, and then create a Podfile by running the following command

Create podfile using below command.

$ pod init

Add the following lines to the Podfile.

________________________________________________________________

For Xcode 12 and above:

platform :ios, '11.0'
use_frameworks!

target 'YourApp' do
     pod 'CometChatPro', '3.0.900'
     pod 'CometChatCalls', '2.1.1'
end
________________________________________________________________

And then install the CometChatPro framework through CocoaPods.

pod install

If you're facing any issues while installing pods then use below command.

pod install --repo-update

2. Configure CometChat inside your app

i. Initialize CometChat

The init() method initializes the settings required for CometChat. We suggest calling the init() method on app startup, preferably in the didFinishLaunchingWithOptions() method of the Application class.

import CometChatPro

class AppDelegate: UIResponder, UIApplicationDelegate{

   var window: UIWindow?
   let appId: String = "ENTER APP ID"
   let region: String = "ENTER REGION CODE"
    
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {

  let mySettings = AppSettings.AppSettingsBuilder().subscribePresenceForAllUsers().setRegion(region: region).build()
  CometChat(appId: appId ,appSettings: mySettings,onSuccess: { (isSuccess) in
  
                print("CometChat Pro SDK intialise successfully.")

        }) { (error) in
            print("CometChat Pro SDK failed intialise with error: \(error.errorDescription)")
        }
        return true
    }
}

Note : Make sure you replace the APP_ID with your CometChat appId and region with your app region in the above code.


ii.Log in your User

The login() method returns the User object containing all the information of the logged-in user.

let uid    = "SUPERHERO1"
let authKey = "ENTER AUTH KEY"

CometChat.login(UID: uid, apiKey: authKey, onSuccess: { (user) in

  print("Login successful: " + user.stringValue())

}) { (error) in

  print("Login failed with error: " + error.errorDescription);

}

Note :

  • Make sure you replace the authKey with your CometChat Auth Key in the above code.

  • We have setup 5 users for testing having UIDs: SUPERHERO1, SUPERHERO2, SUPERHERO3,SUPERHERO4 and SUPERHERO5.


3. Add UI Kit to your project

To integrate CometChat UIKit inside your app. Kindly follow the below steps:

i. Simply clone the UIKit Library from ios-chat-uikit repository.

ii. After cloning the repository, Navigate to Library folder and drag and drop Library folder inside your project's folder.

Studio Guide

iii. Make sure you've selected ✅ Copy items if needed as well as 🔘 Create groups options while adding Library inside your project.

iv. If the Library is added sucessfully, all added folders will be in Yellow color.


4. Launch CometChat UI

Studio Guide

CometChat UI is a way to launch a fully working chat application using the CometChat Kitchen Sink.In CometChat UI all the UI Components working together to give the full experience of a chat application with minimal coding effort.

To use CometChat UI user has to launch CometChatUI class. CometChatUI is a subclass of UITabbarController.

DispatchQueue.main.async {
let cometChatUI = CometChatUI()
cometChatUI.setup(withStyle: .fullScreen)
self.present(cometChatUI, animated: true, completion: nil)
}

Note: Please run the above code snippet in the main thread.

CometChatUI provides below method to present this activity:

  1. setup(withStyle: .fullScreen) : This will present the window in Full screen.

  2. setup(withStyle: .popover) : This will present the window as a popover.


To receive real time call events, user has to register for them in App Delegate class.

CometChatCallManager().registerForCalls(application: self)

Checkout our sample apps

Swift:

Visit our Swift sample app repo to run the swift sample app.

Objective C:

Visit our Objective-C sample app repo to run the objective-c sample app.


Troubleshooting


Contributors

Thanks to the following people who have contributed to this project:

@pushpsenairekar2911 👨‍💻
@yadavmangesh 📝


Contact

Contact us via real time support present in CometChat Dashboard.


License


This project uses the following license.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].