pointfreeco / composable-core-location

A library that bridges the Composable Architecture and Core Location.
MIT License
107 stars 56 forks source link

Replace deprecated API - `CLLocationManager.authorizationStatus()` #27

Closed rhysm94 closed 2 years ago

rhysm94 commented 2 years ago

Calling CLLocationManager.authorizationStatus() is deprecated in iOS 14, tvOS 14, watchOS 7, and macOS 11. Instead, this has been replaced with a call to the authorizationStatus instance variable.

(I copied the compiler guard from other #if available(iOS 14... instances, as I assume there's some Xcode bug?)