Post

Replies

Boosts

Views

Activity

Reply to MapKit UI - Marker / Protocol help
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) } }
Apr ’24