Skip to main content
The ClarioDesk Swift SDK is the native iOS expression of the same contract as the Flutter and React Native SDKs: device-is-identity auth, live updates over Centrifugo/SSE, attachments, CSAT, bug reports, and push — as an actor engine with AsyncStream reads and a SwiftUI prebuilt UI.

Install

Add the package in Xcode (File → Add Package Dependencies…) or in Package.swift:
Link the ClarioDesk product (headless), and ClarioDeskUI too if you want the prebuilt screens. Requires iOS 16+; the package is Swift 6 and consumable from Swift 5.x hosts.

Initialize

initialize is synchronous and fire-and-forget — no await. The first launch generates the Secure Enclave device key and registers the device; later launches reuse the stored key with no network call.
(UIKit hosts call the same line from application(_:didFinishLaunchingWithOptions:).)

Identify the user

Call this after your own auth knows who the user is. It’s optional, pure metadata. See lifecycle for the four events you should wire (especially case 1, which covers users who were logged in before you installed the SDK).

File a ticket

Stream the inbox & a thread

Reactive reads are replay-last AsyncStreams: a new iterator immediately gets the current value, then live updates.
UIKit hosts use the closure variants instead of for await:

Send a reply

Run the example app

The package repo ships Examples/SwiftUIExample, a runnable SwiftUI host:

Lifecycle integration

Wire login, launch, logout, and user-switch.

Prebuilt UI

Skip building the UI. Open a themeable inbox in one call.