Post

Replies

Boosts

Views

Activity

NavigationLink double click on List for MacOS
I need the whole row (including space without content) within the NavigationLink to accept a double click gesture as well as the standard single click that will activate the row and display in the Detail View. If I use an onTapGesture(count:2) or simultaneousGesture(TapGesture(count:2) it doesn't quite work as expected. The content of the row will trigger the double click action but not the normal single click behaviour of the NavigationLink and requires clicking in an unpopulated area of the row. I have tried another onTapGesture with count:1 after the first to explicitly tell it to display the detail view which works but does not highlight the now selected row. I'd like to be able to double or single click anywhere in the list row, with a single click highlighting the row and displaying the detail view and a double click should do the same as the single click plus trigger an action. Similar to how Finder's column view works. If anyone could help with this it would be greatly appreciated.
3
1
1.1k
Jul ’20