Other
4
13
3

PubNub Chat Components for iOS

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.

Features

  • 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

Available components

Prerequisites

Name Requirement
Xcode >= 13.0
Platform iOS, iPad, macOS
Language >= Swift 5
UI Framework UIKit
PubNub Swift SDK >= 4.1.2

Usage

Install chat components

  1. Inside your Xcode project, select File > Add Packages..., and enter the project repository URL.

  2. 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 URL https://github.com/pubnub/chat-components-ios.

  3. After the package details load, click the Add Package button in the lower right corner.

For any additional questions, refer to Apple documentation.

Test sample apps

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.

Related documentation

Support

If you need help or have a general question, contact support.

License

PubNub Chat Components for iOS is released under the MIT license. See LICENSE for details.

Contributors

CraigLn
jguz-pubnub
kazydek
maciej-adamczyk
pubnub-ops-terraform