Supersonic iOS Integration with Swift
Supersonic supports both Objective-C and Swift. While the Supersonic SDK is written in Objective-C, you can easily make it compatible to Swift by following the subsequent procedure:
Import Objective-C to Swift
- Download ‘Supersonic-Bridging-Header.h‘ file here.
- Unzip it and add Supersonic-Bridging-Header.h into your Xcode Project.
- Navigate to Targets ➣ Build Setting and scroll down to the Objective-C Bridging Header.
- Enter the Header File path or drag it into the box as can be seen below:
Once you’ve completed the above steps, you can use Swift seamlessly within the Supersonic SDK, without importing any additional Header Files.
You are now all set to start integrating Supersonic’s SDK with Swift!
Navigate to Getting Started With Supersonic iOS SDK to integrate Supersonic’s iOS SDK.