Contents

init(wrappedValue:resetTransaction:)

Creates a view state that’s derived from a gesture with a wrapped state value and a transaction to reset it.

Declaration

init(wrappedValue: Value, resetTransaction: Transaction)

Parameters

  • wrappedValue:

    A wrapped value for the gesture state property.

  • resetTransaction:

    A transaction that provides metadata for view updates.

See Also

Creating a gesture state