Skip to content

cometchat-pro-tutorials/ios-chat-using-swift

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

iOS Chat App Example

Read the full tutorial here:

>> Build an iOS chat app with Swift

This example shows how to build an anonymous group chat with Swift:

Technology

This demo uses:

  • CometChatPro 2.0.7
  • Swift 5
  • Xcode 11.2.1 or higher

Running the demo

To run the demo follow these steps:

  1. Head to CometChat Pro and create an account
  2. From the dashboard, create a new app called "Swift Group Chat"
  3. One created, click Explore
  4. Go to the API Keys tab and click Create API Key
  5. Create an API key called "Swift Group Chat Key" with Full Access
  6. Download the repository here or by running git clone https://github.com/cometchat-pro-tutorials/ios-chat-using-swift.git.
  7. Navigate to project directory and use pod install command to install the pods and open CometChat.xcworkspace in Xcode.
  8. Update the Constants in ChatService.swift with your newly-created app ID , API key and Region code.
  9. Run the app and login with one of the test users: superhero1, superhero2, superhero3, superhero4 or superhero5

Questions about running the demo? Open an issue. We're here to help ✌️

Useful links

About

No description, website, or topics provided.

Resources

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published