<!--
{
  "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",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI012GestureStateC0V"
  },
  "title" : "GestureStateGesture"
}
-->

# GestureStateGesture

A gesture that updates the state provided by a gesture’s updating callback.

```
@frozen nonisolated struct GestureStateGesture<Base, State> where Base : Gesture
```

## Overview

A gesture’s [`updating(_:body:)`](/documentation/SwiftUI/Gesture/updating(_:body:)) callback returns a
`GestureStateGesture` instance for updating a transient state property
that’s annotated with the [`GestureState`](/documentation/SwiftUI/GestureState) property wrapper.

## Topics

### Creating an in-progress gesture

[`init(base: Base, state: GestureState<State>, body: (GestureStateGesture<Base, State>.Value, inout State, inout Transaction) -> Void)`](/documentation/SwiftUI/GestureStateGesture/init(base:state:body:))

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

[`var base: Base`](/documentation/SwiftUI/GestureStateGesture/base)

The originating gesture.

[`var state: GestureState<State>`](/documentation/SwiftUI/GestureStateGesture/state)

A value that changes as the user performs the gesture.

### Supporting types

[`var body: (GestureStateGesture<Base, State>.Value, inout State, inout Transaction) -> Void`](/documentation/SwiftUI/GestureStateGesture/body)

The updating gesture containing the originating gesture’s value, the
updated state of the gesture, and a transaction.

## Relationships

### Conforms To

[`Gesture`](/documentation/SwiftUI/Gesture)

---

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)