Chat components provide easy-to-use building blocks to create iOS chat applications, for use cases like live event messaging, telemedicine, and service desk support.
Our iOS component library provides chat features like direct and group messaging, typing indicators, presence, and reactions. You don't need to implement a data source by yourself and go through the complexity of designing the architecture of a realtime network. Instead, use our components, predefined repositories, and view models to create custom apps for a wide range of use cases.
- User and Channel Metadata: Add additional information about the users, channels, and their memberships (and store it locally for offline use)
- Subscriptions: Subscribe to user channels automatically
- Messages: Publish and display new and historical text messages
- Presence: Get currently active users, observe their state, and notify about changes
- Typing Indicators: Display notifications that users are typing
- Persistent Data Storage: Store messages, channels, and users locally
- Paging: Pull new data only when you need it
- UIKit Views and Patterns: Use your existing UIKit code to build native UI
Name | Requirement |
---|---|
Xcode | >= 13.0 |
Platform | iOS, iPad, macOS |
Language | >= Swift 5 |
UI Framework | UIKit |
PubNub Swift SDK | >= 4.1.2 |
-
Inside your Xcode project, select File > Add Packages..., and enter the project repository URL.
-
If your GitHub account is added to Xcode's preferences, you can search for
PubNubChatComponents
in the Github section. If it's not added, search using the package URLhttps://github.com/pubnub/chat-components-ios
. -
After the package details load, click the Add Package button in the lower right corner.
For any additional questions, refer to Apple documentation.
Explore sample apps that are built using chat components.
Follow the steps in the Getting Started guide to set up a sample chat app and send your first message.
- PubNub Chat Components for iOS Documentation
- Swift SDK Documentation
- Core Data Documentation
- UIKit Documentation
If you need help or have a general question, contact support.
PubNub Chat Components for iOS is released under the MIT license. See LICENSE for details.