---
title: "init(base:state:body:)"
framework: swiftui
role: symbol
role_heading: Initializer
path: "swiftui/gesturestategesture/init(base:state:body:)"
---

# init(base:state:body:)

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

## Declaration

```swift
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 doc://com.apple.SwiftUI/documentation/SwiftUI/GestureState property.
- `body`: The callback that SwiftUI invokes as the gesture’s value changes.

## See Also

### Creating an in-progress gesture

- [base](swiftui/gesturestategesture/base.md)
- [state](swiftui/gesturestategesture/state.md)
