GestureButton is a SwiftUI button that can handle many different gestures.
MIT License
Bot releases are hidden (Show)
This version adds a GestureButtonScrollState
value to make scroll view buttons behave better.
To use it, create a @StateObject var state = GestureButtonScrollState()
, apply it to a scroll view with .scrollGestureState(state)
and inject it into the GestureButton
initializer.
Future versions should remove the need for injecting it into the gesture button, and instead make the gesture button check for an optional value in the environment.