A Swift Package Manager library for integrating benefits functionality into iOS and macOS applications.
- iOS 13.0+ / macOS 10.15+
- Xcode 12.0+
- Swift 5.9+
Add BenefitsSDK as a dependency in your Package.swift:
dependencies: [
.package(url: "https://github.com/your-org/benefits-sdk.git", from: "1.0.0")
]Or add it through Xcode:
- File → Add Package Dependencies
- Enter the repository URL:
https://github.com/your-org/benefits-sdk.git - Select the version and add to your target
import BenefitsSDK
// Configure the SDK
let configuration = BenefitsConfiguration(
clientId: "your-client-id",
environment: .production,
enableLogging: false
)
// Initialize the SDK
BenefitsSDK.shared.initialize(with: configuration)clientId: Your unique client identifierenvironment:.development,.staging, or.productionenableLogging: Enable/disable SDK logging
This project is licensed under the MIT License.