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