SwiftUI - Adjust Map() scale/zoom

Hi,

I'm looking through SwiftUI Map for SwiftUI documentation (including IOS17 Beta) for way to adjust Map() scale, or zoom level, while simultaneously showing user's location and heading, for which I'm doing this

@State var position = MapCameraPosition = .userLocation(followsHeading: true, fallback: .automatic)

Map(position: $position)

It does not appear to be possible so am looking for confirmation. Thanks everyone.

Post not yet marked as solved Up vote post of macmac72 Down vote post of macmac72
1.8k views

Replies

Still at it, don't have a solution. Does anyone have any idea how to do this? Thanks!

I don't know if you ever figured it out but I think UserAnnotation() is what you are looking for.

Map(position: $position) {
    UserAnnotation()
}

quite related I was hoping to user Camera to do this but got stuck so created separate ticket - https://developer.apple.com/forums/thread/744107#744107021