In an iOS app using SwiftUI and CoreLocation. I need to keep an eye on the status of the permissions given by the user for location access.
Looking at the documentation for CLLocationManagerDelegate, it looks like I am supposed to use the locationManagerDidChangeAuthorization method.
The problem is this method never gets called (as far as I can see). Beside, the other method locationManager:didChangeAuthorization (supposed to be deprecated) seems to do the job.
If someone has any good advice, please let me know.