Initializer

init(initialValue:resetTransaction:)

Creates a gesture state with the initial state value and a reset transaction.

Declaration

init(initialValue: Value, resetTransaction: Transaction)

Discussion

resetTransaction resets the state back to the initial value when the associated gesture becomes inactive.