I am writing a SwiftUI-based mac app (Big Sur beta 2), which shows a List of items. The list is configured to support selection. I also want to support double tapping on selected items.
When I attempt to add a double tap gesture to my list item, it breaks the built-in single tap selection gesture.
I have tried using onTapGesture(count: 2) { ... }, .gesture(TapGesture(count: 2)...), and .simultaneousGesture(TapGesture(count: 2)...), with no luck.
What is the correct way to add double-tap support to a List without breaking single-tap selection?