Post

Replies

Boosts

Views

Activity

"minimumDuration" is not working while use "onTapGesture" and "onLongPressGesture" on a same view
I am trying to implement "onTapGesture" and "onLongPressGesture" with different actions on a same view but I noticed "LongPress Action" has a obvious delay, even I set "minimumDuration" to "0.1", anyone knows why it happens and how to fix it? Thanks very much!!! example code: someView() .onTapGesture { print("tap") } .onLongPressGesture(minimumDuration: 0.1) { print("long") }
0
0
323
May ’22