The approach would be to iterate inside the map using ForEach() to add the markers.
Add a title string property to IdentifiableAnnotation and display it as such:
Map(coordinateRegion: $locationManager.region,
interactionModes: .all,
showsUserLocation: true,
userTrackingMode: .none) {
ForEach(courtAnnotations) { item in
Marker(item.title, coordinate: item.annotation.coordinate)
}
}
Post
Replies
Boosts
Views
Activity
When tapping anywhere on a Map view, I get a warning "Trying to convert coordinates between views that are in different UIWindows, which isn't supported. Use convertPoint:fromCoordinateSpace: instead."
I'd guess it's got something to do with that.