iOS SDK
Embed the Loops AI assistant natively in your iOS app — chat, virtual try-on, search, size, and analytics through one SDK.
What the iOS SDK does
The Loops AI iOS SDK (LoopsAIChatSDK) embeds the full Loops assistant inside
your native app. It is a thin, dependency-free native container around the Loops
web runtime: the web owns the conversation UI, while native owns the session,
routing, and analytics.
One integration gives you:
- Chat presented full-screen, as a sheet, or pushed onto a navigation stack.
- Flow modes as first-class native calls — virtual try-on, AI search, size suggestion.
- Analytics that flow through the SDK on the
ioschannel and share one taxonomy with your web and Android reports. - Native session ownership — the anonymous session persists in the Keychain and survives app relaunch (no session loss on iOS WebKit).
The SDK requires iOS 15+ and is distributed via Swift Package Manager. It has zero third-party dependencies.
Start here
Install
Add the SDK via Swift Package Manager.
Quickstart
Present the assistant in a few lines (SwiftUI or UIKit).
Configuration
agentId, environment, feature flags, analytics.
Context
Pass product and user context, update it live.
Flow modes
Try-on, search, and size entry points.
Analytics
Native analytics on the ios channel.
Architecture
How the native ↔ web bridge and session work.
Building for Android? The Android SDK mirrors the same public API and emits identical analytics. Web embed is documented under Widget Embed.