This tutorial will walk you through developing a basic chat application in Swift using PubNub.
Chat developers have a choice of using any of the PubNub SDKs directly or making use of the prebuilt UI components. Whether you choose to use the SDK or chat components depends on your specific circumstances, please see our blog on the chat components for a discussion on which to use, and when. This tutorial will focus on the Swift SDK and not the PubNub chat UI components designed for iOS development iOS.
The source code for this application can be found on Github at https://github.com/PubNubDevelopers/GettingStarted-Swift-SDK-Tutorial
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.
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: