Build a Chat App with the PubNub iOS SDK

This tutorial will walk you through developing a basic chat application in Swift using PubNub.  

This tutorial will focus on the Swift SDK and not the community-supported chat UI components designed for iOS.  

The source code for this application can be found on Github at 



Before running this application, be sure you have the following installed:

  • XCode. The application was created with version 13.4.1 of Xcode but any recent version should work.

Download Source Application

In a terminal, navigate to an empty folder.  Enter the following command to clone the repository:

The main git branch contains the completed version of this tutorial.  If you would like to follow along, please checkout the following branch:

BackStep 1 of 4Next