143
GitHub - instamobile/messenger-iOS-chat-swift-firestore: Messenger - Real-time i...
source link: https://github.com/instamobile/messenger-iOS-chat-swift-firestore
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
README.md
Real time Swift iOS Chat with Firebase Firestore
This is an extremely simple implementation of an iOS Swift Chat app. It leverages MessageKit and it stores and retrieves data to/from Firebase Firestore. The app design is inspired by Facebook Messenger.
Learn how to build your own iOS chat feature with only a few lines of code. For more details, check out our detailed technical documentation on the official iOS Swift Chat app page.
How to run a demo app
- Download the source code by cloning this repository
- Install the pods by running
pod install
- Open the xcworkspace file with the latest version of Xcode
How to integrate the chat into your app
- Download the source code and import the "Core" folder into your Xcode project
- Make sure you add all the Podfile dependencies into your own Podfile
- Install the pods
pod install
- Use the following code to instantiate a chat view controller
let uiConfig = ATCChatUIConfiguration(primaryColor: UIColor(hexString: "#0084ff"), secondaryColor: UIColor(hexString: "#f0f0f0"), inputTextViewBgColor: UIColor(hexString: "#f4f4f6"), inputTextViewTextColor: .black, inputPlaceholderTextColor: UIColor(hexString: "#979797")) let channel = ATCChatChannel(id: "channel_id", name: "Chat Title") let viewer = ATCUser(firstName: "Florian", lastName: "Marcu") let chatVC = ATCChatThreadViewController(user: viewer, channel: channel, uiConfig: uiConfig) // Present the chatVC view controller
Coded with love and supported by iOS App Templates.
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK