MapZoomStepper
Buttons a person uses to adjust the zoom level of the map.
Declaration
@MainActor @preconcurrency struct MapZoomStepperOverview
You typically use MapZoomStepper with Map as a stand alone view, as shown in the following example:
struct ZoomStepperTestView: View {
@Namespace var mapScope
var body: some View {
VStack {
Map(scope: mapScope)
MapZoomStepper(scope: mapScope)
}
.mapScope(mapScope)
}
}You can also use a MapZoomStepper in conjunction with the Map/mapControls(_:) modifier, as show in here:
Map()
.mapControls {
MapZoomStepper()
}