Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ryanisnhp/28dcbfd73f9395745a0ee0f38ea77463 to your computer and use it in GitHub Desktop.
Save ryanisnhp/28dcbfd73f9395745a0ee0f38ea77463 to your computer and use it in GitHub Desktop.
func locationManagerDidChangeAuthorization(_ manager: CLLocationManager) {
let accuracyAuthorization = manager.accuracyAuthorization
switch accuracyAuthorization {
case .fullAccuracy:
break
case .reducedAccuracy:
manager.requestTemporaryFullAccuracyAuthorization(withPurposeKey: "ForDelivery")
break
default:
break
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment