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)
}
}
Topic:
App & System Services
SubTopic:
Maps & Location
Tags: