Use a Long Press Gesture To Toggle a Boolean State Back To False
Daily Coding Tip 130
Sometimes you want to be sure that a touch gesture is being done deliberately.
A regular tap for instance can be done accidentally when the user is trying to scroll and, when using a Toggle, it can lead to a state that was set to true being reverted back to false. In order to make it harder to undo an action, I’m going …


