At WWDC 2023, Apple announced big improvements to SwiftUI support for MapKit. Learn all about your new options for maps, markers, annotations, style and camera position.
Thanks for the post. Is there a way to specify user tracking mode in the newer Map() syntax? For example if we wish to specify userTrackingMode = .followWithHeading
hi Abhijit! MapUserTrackingMode has been deprecated, but thereβs a MapUserLocationButton that sets the framing of the associated map to the user location. Also, MapCameraPosition has Boolean properties followsUserHeading and followsUserLocation.
Thank you Audrey. I was able to get what I wanted by adding map controls and then using the MapUserLocationButton() button to orient the map such that up was where I am heading.