In this section, we will learn how to implement the same examples using iOS. The Estimote SDK is written in Objective-C, but it works perfectly with Swift as well. You need to provide a bridging header by following these steps:
- Choose New File by right-clicking on the project's group.
- Pick a Header File from the iOS-Source section.
- Save the header file as ObjCBridge.h.
- Import the Estimote SDK by calling #import <EstimoteSDK/EstimoteSDK.h> in the newly created file.
- Go to Build Settings.
- Find the Objective-C Bridging Header setting, and set it to ${PROJECT_NAME}/ObjCBridge.h.
Once you are all set up with the bridging header, you can start using the SDK in Swift.
For iOS, we will use the same procedure and example as ...