Sample code demonstrating A practical guide to App Tracking Transparency in iOS, covering the Info.plist usage description, the ATTrackingManager API, authorization statuses, and when to actually prompt the user from SwiftUI..
This project accompanies the article: App Tracking Transparency in SwiftUI
- Xcode 26.2+
- iOS 26.0+
- Swift 6.0
- Clone this repository
- Run
xcodegen generate(requires XcodeGen) - Open
AppTrackingTransparencySWIFTUI.xcodeproj - Build and run
- App.swift: Source file
- ContentView.swift: Source file
- PersonalizedFeedView.swift: Source file
- TrackingPrePromptView.swift: Source file
Read the full article at BleepingSwift for detailed explanations and additional examples.
MIT License - see LICENSE for details.