How do you detect a SwiftUI touchDown event with no movement or duration?
You can use the .updating modifier like this: struct TapTestView: View { @GestureState private var isTapped = false var body: some View { let tap = DragGesture(minimumDistance: 0) .updating($isTapped) { (_, isTapped, _) in isTapped = true } return Text(“Tap me!”) .foregroundColor(isTapped ? .red: .black) .gesture(tap) } } Some notes: The zero minimum distance makes … Read more