Install the iOS SDK
Add LoopsAIChatSDK to your app via Swift Package Manager.
Requirements
- iOS 15.0 or later
- Swift 5.9+ / Xcode 15+
- A Loops agent ID (from the configurator)
Add the package
Add the Swift Package
In Xcode: File → Add Package Dependencies…, then enter the repository URL:
https://github.com/loopsmartai/loopsai-sdk-iosChoose the latest released version and add the LoopsAIChatSDK product to your app target.
Or declare it in Package.swift
dependencies: [
.package(url: "https://github.com/loopsmartai/loopsai-sdk-ios", from: "1.0.0")
],
targets: [
.target(name: "YourApp", dependencies: [
.product(name: "LoopsAIChatSDK", package: "loopsai-sdk-ios")
])
]Import the module
import LoopsAIChatSDKInfo.plist keys
Add these only if you use the matching features:
| Key | When you need it |
|---|---|
NSCameraUsageDescription | Virtual try-on flows that capture from the camera. |
The SDK has no third-party dependencies, so there is nothing else to link.
Continue to the Quickstart.