Commit f52b2cf
committed
fix: use instance property for CLLocationManager authorizationStatus
The class method +[CLLocationManager authorizationStatus] was
deprecated in macOS 11.0. Switch to the instance property instead.
Also fix the default case to return 'not determined' instead of
'denied' for kCLAuthorizationStatusNotDetermined.1 parent 7e9618c commit f52b2cf
1 file changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
371 | 371 | | |
372 | 372 | | |
373 | 373 | | |
374 | | - | |
| 374 | + | |
| 375 | + | |
375 | 376 | | |
376 | 377 | | |
377 | 378 | | |
378 | 379 | | |
379 | 380 | | |
380 | 381 | | |
381 | 382 | | |
382 | | - | |
| 383 | + | |
383 | 384 | | |
384 | 385 | | |
385 | 386 | | |
| |||
0 commit comments