Skip to main content

Swift Package Manager

  1. Open your project in Xcode.
  2. Go to File > Add Package Dependencies.
  3. Enter the repository URL: https://github.com/your-org/stringboot-ios-sdk.git
  4. Select the version (e.g., 1.2.2) and add it to your target.
Alternatively, add it to your Package.swift:

Initialization

Initialize the SDK in your App struct (SwiftUI) or AppDelegate (UIKit). This snippet sets up everything you need.
Replace YOUR_API_TOKEN with your actual API token from the Stringboot Dashboard.

Configuration (Optional)

You can also configure the SDK via Info.plist: