init(initialValue:reset:)
Creates a view state that’s derived from a gesture with an initial state value and a closure that provides a transaction to reset it.
Declaration
init(initialValue: Value, reset: @escaping (Value, inout Transaction) -> Void)Parameters
- initialValue:
An initial state value.
- reset:
A closure that provides a Transaction.