SDKsClient

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.

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-swift remain 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

How is this guide?

On this page