When I add a MapUserLocationButton
to the SwiftUI Map
, it does not work unless I have previously requested location access. Since this is a SwiftUI control that the user explicitly clicks to display their location in the map, I don’t think the app should need to request location access. The user is expressing an explicit intent by clicking the button.
Maybe the button should display the request prompt automatically if not already granted when the control is used, rather than silently failing?
In my app, I had previously requested permission, and was pleased to be able to remove that when migrating to the built-in button... or so I thought!
(FB13134130)