Skip to content

Instantly share code, notes, and snippets.

@barrault01
Created May 2, 2021 22:00
Show Gist options
  • Save barrault01/3a8954e89277d6ebdd97076fac81cc9f to your computer and use it in GitHub Desktop.
Save barrault01/3a8954e89277d6ebdd97076fac81cc9f to your computer and use it in GitHub Desktop.
ATTrackingManager request tracking
if #available(iOS 14, *) {
ATTrackingManager.requestTrackingAuthorization(completionHandler: { status in
if status == .authorized {
//if authorized the IDFA is now available
}
})
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment