Detect When a Button Is Currently Being Touched In SwiftUI
Daily Coding Tip 258
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…


