init(initialValue:resetTransaction:)
Creates a view state that’s derived from a gesture with an initial state value and a transaction to reset it.
Declaration
init(initialValue: Value, resetTransaction: Transaction)Parameters
- initialValue:
An initial state value.
- resetTransaction:
A transaction that provides metadata for view updates.