isAuthorizedForWidgetUpdates
A Boolean value that indicates whether a widget is eligible to receive location updates.
Declaration
var isAuthorizedForWidgetUpdates: Bool { get }Discussion
This property is true when either of the following is true:
The app’s authorization status is CLAuthorizationStatus.authorizedAlways.
The app’s authorization status is CLAuthorizationStatus.authorizedWhenInUse and the user agrees to extend the app’s authorization status to widgets.
For details about using location information in widgets with CLAuthorizationStatus.authorizedWhenInUse, see Accessing location information in widgets.