<!--
{
  "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/GestureStateGesture/init(base:state:body:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI012GestureStateC0V4base5state4bodyACyxq_Gx_AA0cD0Vyq_Gy5ValueQz_q_zAA11TransactionVztctcfc"
  },
  "title" : "init(base:state:body:)"
}
-->

# init(base:state:body:)

Creates a new gesture that’s the result of an ongoing gesture.

```
nonisolated init(base: Base, state: GestureState<State>, body: @escaping (GestureStateGesture<Base, State>.Value, inout State, inout Transaction) -> Void)
```

## Parameters

`base`

The originating gesture.

`state`

The wrapped value of a [`GestureState`](/documentation/SwiftUI/GestureState) property.

`body`

The callback that SwiftUI invokes as the gesture’s value
changes.

---

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)