SwiftLocation icon indicating copy to clipboard operation
SwiftLocation copied to clipboard

How to observe authorizationStatus change?

Open RoyRao2333 opened this issue 3 years ago • 0 comments

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?

image

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?

RoyRao2333 avatar Nov 25 '21 08:11 RoyRao2333