Post

Replies

Boosts

Views

Activity

Reply to SwiftUI iOS 14 MapKit Annotation Tap Gesture (didSelect)
I have the same problem on tapping MapAnnotations. I am looking for a solution for iOS 14+ as well. Any help would be appreciated. Map(coordinateRegion: $locationStore.locationCoordinate,                 interactionModes: MapInteractionModes.all, showsUserLocation: true,                 userTrackingMode: $userTrackingMode,                 annotationItems: locationStore.retailer) { place in                 MapAnnotation(coordinate: place.coordinate()) {                     MapAnnotationView(retailer: place)                         .onTapGesture(count: 1, perform: {                             self.place = place                             self.showingAlert = true                         })                 }             }.edgesIgnoringSafeArea(.all)
Oct ’20