How to Make Double Click work on a NavigationLink (SwiftUI)?

Mark van Wijnen
4 min readJul 16, 2022
Photo by Alex Bachor on Unsplash

It’s actually ridiculous that this story needs to be written. Something as basic as detecting a double mouse click on a NavigationLink should be as easy as using the .onTapGesture(count: 2) {} event modifier. However if you arrived at this story there is a great chance you will have noticed that it doesn’t work as you would expect it and you are eager to find a workaround. I am here to…

--

--

Mark van Wijnen

macOS/iPadOS/iOS/watchOS/visionOS developer and SwiftUI enthousiast. “Stay Hungry, Stay Foolish!” — Steve Jobs