TrackingPermissionsView
A SwiftUI View that introduces App Tracking Transparency (ATT) and receives interaction events for initiating tracking permissions from the system.
Usage
(
TrackingPermissionsView: .init(
interactor: {
didSelectEnable// Example tracking authorization usage:
//
// Task {
// let result = await TrackingController.requestAuthorization()
// print("Tracking: \(result)")
// }
},
: {}
didSelectSkip)
)
Features
- Supports light and dark device color schemes by default.
- Supports font scaling via Dynamic Type.
- Supports usage in SwiftUI Previews for easy debugging and testing.