A view that reflects the current orientation of the associated `Map`.
Tapping the compass reorients so that due north is at the top of the
`Map` view.
May be used in conjunction with `Map` as a stand alone view
struct CompassButtonTestView: View {
@Namespace var mapScope
var body: some View {
VStack {
Map(scope: mapScope)
MapCompass(scope: mapScope)
}
.mapScope(mapScope)
}
}
MapCompass may also be used in conjunction with the `.mapControls()`
modifier
Map()
.mapControls {
MapCompass()
}