PubNub Product Updates

Introducing the Native Swift SDK for PubNub

2 min read David Lin on Oct 21, 2019
Try PubNub Today

Free up to 1MM monthly messages. No credit card required.

Subscribe to our newsletter

By submitting this form, you are agreeing to our Terms and Conditions and Privacy Policy.

The native Swift SDK provides Swift developers a simplified and more streamlined experience to effectively develop their iOS application using PubNub with common best practice architecture patterns.

In our quest to deliver a world-class developer experience, we’re pleased to introduce our new native PubNub Swift SDK.

While developers have been able to use the PubNub Objective-C SDK within a Swift application, the developer experience wasn’t where we wanted it to be. The native Swift SDK provides Swift developers a simplified and more streamlined experience to effectively develop their Swift application using PubNub with common best practice architecture patterns. This also allows developers to easily understand how to take advantage of PubNub’s features with predictable usage patterns that are familiar amongst Swift developers.

Solving Developer Problems

Apple has announced that Swift will be the new major language when writing applications for MacOS, iOS, TvOS and WatchOS, and upcoming new features for Swift may not be supported in Objective-C. For developers who have been using the Objective-C framework to code in Swift, this is clearly a problem.

In addition, Objective-C and Swift are not mutually intelligible and as you might expect, using an Objective-C library within Swift feels unnatural. Lastly, newer Swift developers want to follow patterns they’ve learned or can easily look up without requiring a depth of knowledge related to Objective-C and the nuances on how to make the two play nice.

A Better Developer Experience

Developers using the native Swift SDK can now quickly and easily onboard their application using PubNub without an intimate knowledge of Objective-C. There’s a number of ways this will create a better developer experience for you and your team:

  • Know that your application is working correctly using common patterns within the native Swift SDK.
  • Easily troubleshoot any issues that arise in your applications built with PubNub by using common best practice patterns instead of having to formulate your own custom solution.
  • Get up and running as quickly as possible and with as little problems as possible knowing that you can write your applications in Swift and maintain trust in the PubNub infrastructure you already know, and love.

And let’s not forget about being able to work with PubNub team members to build and maintain the perfect application. When working with PubNub, you’ll have access to our Solution Architects who can help to define and build your infrastructure while suggesting the common patterns that standard Swift applications already follow. If you need support, our Support Engineers will be able to help you achieve expected outcomes for applications built with the Swift SDK so that debugging and assisting any upcoming issues will be fairly clear.

More from PubNub

NPP and HIPAA: Notice of Privacy Practices Definition
Healthcare CategoryJan 6, 20235 min read

NPP and HIPAA: Notice of Privacy Practices Definition

A Notice of Privacy Practices (NPP) is one of the requirements of HIPAA and helps patients understand their personal data rights.

Michael Carroll

Michael Carroll

HIPAA Violation Examples
Healthcare CategoryJan 5, 20236 min read

HIPAA Violation Examples

HIPAA violations can be financially expensive and devastating to a brand. Examine some examples of HIPAA violations, and learn...

Michael Carroll

Michael Carroll

HIPAA Technical Safeguards: How To Protect Sensitive Data
Healthcare CategoryJan 5, 20236 min read

HIPAA Technical Safeguards: How To Protect Sensitive Data

HIPAA covered entities must follow the five technical safeguards to achieve HIPAA compliance and prevent data corruption.

Michael Carroll

Michael Carroll