init(base:state:body:)
Creates a new gesture that’s the result of an ongoing gesture.
Declaration
init(base: Base, state: GestureState<State>, body: @escaping (GestureStateGesture<Base, State>.Value, inout State, inout Transaction) -> Void)Parameters
- base:
The originating gesture.
- state:
The wrapped value of a Gesturestate property.
- body:
The callback that SwiftUI invokes as the gesture’s value changes.