authorizationStatus
The current authorization status for the app.
Declaration
var authorizationStatus: CLAuthorizationStatus { get }Mentioned in
Return Value
A value indicating whether the app is authorized to use location services.
Discussion
Check this value when the locationManagerDidChangeAuthorization(_:) delegate callback indicates that the authorization status has changed.
The system is guaranteed to call the delegate method with the app’s initial authorization state and all authorization status changes.
The system manages the authorization status of a given app according to several factors. Users must authorize the app to use location services explicitly, and location services must be enabled in Settings > Privacy. See Choosing the Location Services Authorization to Request for more information.