A long press gesture has an .onChanged()
event that happens when a touch of any duration begins.
Then there is an .onEnded()
event when the press has been held for the stated minimum duration (0.5 seconds by default).
Finally there is an .updating(_:)
event which occurs before .onChanged()
, and that’s what I’ll be using to…
Keep reading with a 7-day free trial
Subscribe to Type Safely to keep reading this post and get 7 days of free access to the full post archives.