iOS SDK (client)
Install the Ours Privacy Swift SDK to capture privacy-first analytics in iOS, tvOS, macOS, and watchOS apps. No IDFA, no AppTrackingTransparency prompt.
Privacy-first analytics for iOS, tvOS, macOS, and watchOS, written in Swift.
- Swift Package Manager / GitHub — full README, API reference, and release notes
Install
In Xcode: File → Add Package Dependencies… and enter https://github.com/with-ours/ours-privacy-swift. Pick the latest tagged release. Then add OursPrivacyKit to your target's dependencies.
Migrating from CocoaPods? Past versions of
OursPrivacy-swiftremain installable from CocoaPods trunk but receive no further updates. New releases ship via Swift Package Manager.
Quick Start
import OursPrivacyKit
let op = OursPrivacy(token: "YOUR_API_TOKEN", trackAutomaticEvents: true)
Task { await op.initialize() }
op.track(event: "App Opened")For the full API — identify, flush, reset, default properties, deep link attribution, opt in/out, and configuration — see the README on GitHub.
Compatibility
- iOS 13+
- tvOS 13+
- macOS 10.15+
- watchOS 6+
- Swift 5+
No IDFA is collected — AppTrackingTransparency (ATT) permission is not required on iOS.
Explore the API
Want to see what you can send? Try our playground for a point-and-click payload builder.
Need Help?
Next Steps
- Client SDKs overview — pick the right SDK for each surface.
- Web SDK (JavaScript) — for browser tracking.
- Android SDK — for the native Android counterpart.
- React Native SDK — if you're shipping a cross-platform mobile app.
How is this guide?

