Last active
September 6, 2020 14:00
-
-
Save janakaaleph/d4a9b6579ed4b46079db30715e315287 to your computer and use it in GitHub Desktop.
Code snippets from Praveen Kumar's article: https://medium.com/aleph-universe/whats-new-in-location-ios-14-9920ae42ba5c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if locationManager.accuracyAuthorization == .reducedAccuracy { | |
locationManager.requestTemporaryFullAccuracyAuthorization(withPurposeKey: "wantsToDeliverFoodToDoorStep") { (error) in | |
// Use location with full accuracy | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment