IDKit for native iOS/macOS integrations backed by the same Rust core as other SDKs.
Requirements
- iOS 15+ / macOS 12+
- Xcode 16+
Install
Use Swift Package Manager with the publishedidkit-swift repository:
Request flow
Presets
Polling API
pollStatusOnce() async -> IDKitStatuspollUntilCompletion(options:) async -> IDKitCompletionResultIDKitPollOptions(pollIntervalMs:timeoutMs:)
Invite-code mode
UsepresetWithInviteCode(_:) on the builder to return an IDKitInviteCodeRequest instead of IDKitRequest. The polling surface is identical. See Invite-code mode for when to use it.
Migrating from QR / connect-URL
connectorURL now includes &c=<code>&a=<app_id> params; use it alongside expiresAt in your UI. Polling, proof verification, and nullifier storage stay the same.
IDKitInviteCodeRequest exposes:
connectorURL: URLexpiresAt: DaterequestID: StringpollStatusOnce() async -> IDKitStatuspollUntilCompletion(options:) async -> IDKitCompletionResult