Open sindresorhus opened 4 years ago
even single tap is not working
Encounter the same situation. Have you found out any solution?
Encounter the same situation. Have you found out any solution?
This answer stack overflow is an effective workaround.
And at last, I implement a customized View that wrapped an NSTableView, replace the List.
Description
I have a list of rows that can be reordered with dragging, but I also want to add the ability to double-click a row to edit it. The problem is that when I add
.onTapGesture(count: 2) {}
to a row, the row can no longer be dragged and dropped.I have attached an Xcode project that clearly illustrates the problem, I'm also including the code inline here as it's not much:
Files
swiftui-onmove-testcase.zip