<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "visionOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/View/manipulationGesture(updating:coordinateSpace:operations:inertia:isEnabled:onChanged:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI4ViewPAAE19manipulationGesture8updating15coordinateSpace10operations7inertia9isEnabled9onChangedQrAA7BindingVyAA11ManipulableO0E5StateVG_qd__AN9OperationV3SetVAN7InertiaVSbyAN5EventVcSgtAA010CoordinateH8ProtocolRd__lF"
  },
  "title" : "manipulationGesture(updating:coordinateSpace:operations:inertia:isEnabled:onChanged:)"
}
-->

# manipulationGesture(updating:coordinateSpace:operations:inertia:isEnabled:onChanged:)

Adds a manipulation gesture to this view without allowing this view
to be manipulable itself.

```
@export(implementation) nonisolated func manipulationGesture(updating gestureState: Binding<Manipulable.GestureState>, coordinateSpace: some CoordinateSpaceProtocol = .local, operations: Manipulable.Operation.Set = .all, inertia: Manipulable.Inertia = .medium, isEnabled: Bool = true, onChanged: ((Manipulable.Event) -> Void)? = nil) -> some View
```

## Parameters

`gestureState`

The state that the manipulation gesture updates.

`coordinateSpace`

The coordinate space of the manipulation gesture
event locations.

`operations`

The set of allowed operations that can be applied when
a person manipulates this view.

`inertia`

The inertia of this view that defines how much it resists
being manipulated.

`isEnabled`

The Boolean value that indicates whether the manipulation
gesture added by this view modifier is enabled or not.

`onChanged`

The action to perform with each new manipulation gesture
event.

## Return Value

A view with a manipulation gesture attached but that isn’t
manipulable itself.

## Discussion

Use this view modifier alongside [`manipulable(using:)`](/documentation/SwiftUI/View/manipulable(using:)) when you
want to allow a person to manipulate a view by interacting with
a different view.

In the following example, a person can begin a manipulation gesture
attached to a deck of cards which, in turn, manipulates a single card
instead of the entire deck:

```
struct CardDeck: View {
    @State private var manipulationState = Manipulable.GestureState()

    var body: some View {
        ZStack {
            Model3D(named: "CardDeck")
                .manipulationGesture(updating: $manipulationState)
            Model3D(named: "Card")
                .manipulable(using: manipulationState)
                .opacity(manipulationState.isActive ? 1 : 0)
        }
    }
}
```

> SeeAlso: ``doc://com.apple.SwiftUI/documentation/SwiftUI/View/manipulable(using:)``

---

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)