Installation

You can install Onboardings SDK via CocoaPods, or Swift Package Manager.

Install via Swift Package Manager

  1. In Xcode go to File > Swift Packages > Add Package Dependency...
  2. Enter the repository URL https://github.com/adaptyteam/onboardings-ios
  3. Choose the version, and click Next. Xcode will add the package dependency to your project, and you can import it.

Install via CocoaPods

Add Adapty to your Podfile and then run pod install:

pod 'Onboardings', '~> 1.0.0'

Configuration

You only to configure the Onboardings SDK once early in your application lifecycle:

do {
    try Onboardings.activate("PUBLIC_SDK_KEY")
} catch {
    // handle the error
}

PUBLIC_SDK_KEY in Dashboard

You can find your SDK key in your project settings.

Screenshot 2024-08-18 at 12.03.05 PM.png

Overriding log level

Onboardings SDK logs errors and other important information to help you understand what is going on. There are four levels available:

  1. .error: only errors will be logged