SwiftLocation
SwiftLocation copied to clipboard
How to observe authorizationStatus change?
For CLLocationManager, I can use func locationManagerDidChangeAuthorization(_ manager: CLLocationManager)
to observe. But since I'm using this framework, can anybody tell me how to observe authorizationStatusChange with SwiftLocation?
I found above in source code, and seems like it invoked some authorizationCallbacks, which are added by SwiftLocation.requestAuthorization(completion:)
. But after adding a callback, I changed authorization status for my app, nothing happened.
And, there's no .delegate
option for SwiftLocation
instance, so how can I achieve it?