MapReader

@available(iOS 13.0, *)
 @_spi(Experimental) public struct MapReader<Content> : View where Content : View

Provides access to the underlying MapView map via proxy.

Wrap Map into a map reader to get access to the underlying map implementation.

var body: some View {
    MapReader { proxy in
        Map()
            .onAppear {
                configureUnderlyingMap(proxy.map)
            }
    }
}