AsyncStream reads and a
SwiftUI prebuilt UI.
Install
Add the package in Xcode (File → Add Package Dependencies…) or inPackage.swift:
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.
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-lastAsyncStreams: a new iterator immediately gets
the current value, then live updates.
for await:
Send a reply
Run the example app
The package repo shipsExamples/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.