Docs
iOS SDK (Swift)
Add the Onvert iOS SDK, configure with your app key, and present flows from UIKit or SwiftUI.
The Swift SDK renders published flows with native UIKit / SwiftUI components and hooks into your StoreKit purchase path.
Install
Add the Onvert package via Swift Package Manager. The package URL is available in the dashboard under SDK setup.
swift
import Onvert
@main
struct MyApp: App {
init() {
Onvert.configure(appKey: "onv_...")
}
var body: some Scene {
WindowGroup {
ContentView()
}
}
}Present a flow
swift
Onvert.presentFlow(
onComplete: { /* navigate into the app */ },
onPurchase: { productId in
// Start StoreKit purchase for productId
}
)Notes
- Call configure as early as possible in app launch
- Present flows from a visible view controller / SwiftUI host
- Handle StoreKit 2 transactions in your purchase callback before unlocking entitlements