<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.15.0 -",
    "tvOS: 13.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 6.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/GestureState/init(wrappedValue:resetTransaction:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI12GestureStateV12wrappedValue16resetTransactionACyxGx_AA0H0Vtcfc"
  },
  "title" : "init(wrappedValue:resetTransaction:)"
}
-->

# init(wrappedValue:resetTransaction:)

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

```
init(wrappedValue: Value, resetTransaction: Transaction)
```

## Parameters

`wrappedValue`

A wrapped value for the gesture state property.

`resetTransaction`

A transaction that provides metadata for view
updates.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)