Skip to main content
Download DoubleDataClient.swift and the complete SwiftUI example. Add them and your configured application-sdk.json to an iOS 15+ app. The examples require an iOS XCFramework exposing the SDK’s DoubleDataProxy C module. Swift examples are included in this release; a prebuilt iOS XCFramework is not included. Add a compatible static framework to your Xcode target with Do Not Embed.

Create a client

The client is inactive. The SDK supplies the DoubleData notice, privacy link, and version.

Show your SwiftUI screen

model owns your presentation state. The callback runs on the main actor. Render the full supplied prompt.notice with your own layout:
Call prompt.choose(.dismiss) when the screen is dismissed. Only an explicit acceptance can start sharing. The complete example handles sheet dismissal and keeps actions accessible below a scrollable notice.

Stop and withdraw

On backgrounding, cancel pending presentation and withdraw. Await close() before replacing a client; retry it if cleanup fails. Native work runs off the UI thread. The portable wrapper is tested against the native C ABI. Apple SDK compilation and device testing remain required for your iOS build. Participation flow.