Problem
LongPressGesture ignores minimumDuration parameter and succeeds immediately, also onEnded is never invoked.
Steps to reproduce
Take Apple’s own sample code from their documentation: LongPressGesture.
Remove transaction.animation = Animation.easeIn(duration: 2.0) line to make the effect more obvious.
Expected result:
The circle must turn red after 3 seconds of pressing on it, and turn green when released.
Actual result
The circle turns red immediately and never turns green.
Notes
I tried many combinations of .gesture and .simultaneousGesture applied to different types of views. Was anyone able to make the minimum duration work when passed to .gesture modifier?