Swift Package Manager
- Open your project in Xcode.
- Go to File > Add Package Dependencies.
- Enter the repository URL:
https://github.com/your-org/stringboot-ios-sdk.git - Select the version (e.g.,
1.2.2) and add it to your target.
Package.swift:
Initialization
Initialize the SDK in yourApp struct (SwiftUI) or AppDelegate (UIKit). This snippet sets up everything you need.
- SwiftUI
- UIKit
Replace
YOUR_API_TOKEN with your actual API token from the Stringboot Dashboard.Configuration (Optional)
You can also configure the SDK viaInfo.plist: