Swift SDK

TraceIQ for Apple platforms (iOS 13+, macOS 10.15+) and server-side Swift. Foundation-only.

The Swift package is not published yet: Swift Package Manager installs from a repository with Package.swift at its root, and it lives in sdks/swift. Until then, clone the TraceIQ repository and add sdks/swift as a local package (Xcode: File → Add Package Dependencies → Add Local), then:

swift
import TraceIQ

let traceiq = TraceIQ(config: .init(
  projectId: "YOUR_PROJECT_ID",
  writeKey: "YOUR_WRITE_KEY",
  endpoint: "https://api.traceiq.run"
))

traceiq.identify(userId: "user_123", traits: ["kyc_tier": 2])
traceiq.capture("transfer_started", userId: "user_123", properties: ["amount": 5000])