Post

Replies

Boosts

Views

Activity

Comment on `onTapGesture` not triggered on `Map` views
I also have found that I can't get the coordinates of the tap from .simultaneousGesture(TapGesture().onEnded {}) but I can when I use a DragGesture with 0 minimum distance like so: .simultaneousGesture( DragGesture(minimumDistance: 0).onEnded { value in self.tapLocation = value.location }) Curious to understand if there are any pros and cons between DragGesture(minimumDistance: 0) and SpatialTapGesture()?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Aug ’25