What it does
The SDK does three things for every placement you present:- Resolve. It asks the FlowPilot backend which flow (and which experiment variant, if any) to show for this placement, user, and audience. Results are cached so the next present is fast.
- Render. It draws the resolved flow as native SwiftUI views. There is no web view. Components, layout, animations, and persistent UI zones all render natively.
- Report. It emits analytics events automatically (
flow_start,screen_view,flow_complete, and more) and lets you forward them to your own analytics, plus track conversions for revenue attribution.
presentPlacement(_:from:)) and SwiftUI (createSession(placementKey:) plus the .flowPresenter view modifier).
Before you startYou need:
- A FlowPilot workspace.
- An app inside that workspace.
- An SDK API key for that app.
Requirements
Requirements- iOS 15.0+ / macOS 12.0+
- Swift 5.9+ and Xcode 15.0+
- One transitive dependency:
lottie-ios(4.5.0 and up), pulled in automatically by Swift Package Manager
Where to go next
Installation
Add the Swift package to your Xcode project.
Configuration
Initialize the SDK at launch with your API key and App ID.
Quickstart
Configure, present a placement, and read the result.