Swift Support

Sentiance SDK is compatible and refined to be used with Swift Apps.

Steps to integrate the Sentiance SDK into iOS Apps written in Swift:

  1. After the integration steps, in the Bridging Headerarrow-up-right for your application, import the Sentiance SDK in the files you want to use the API.

  2. Access the API using the singleton instance Sentiance.shared.

Example:

@import SENTSDK

class MyClass {
    func run() {
        let sentiance = Sentiance.shared
    }
}

Last updated