<!--
{
  "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:reset:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI12GestureStateV12wrappedValue5resetACyxGx_yx_AA11TransactionVztctcfc"
  },
  "title" : "init(wrappedValue:reset:)"
}
-->

# 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.

```
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`](/documentation/SwiftUI/Transaction).

---

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)