---
title: "installGestures(_:for:)"
framework: realitykit
role: symbol
role_heading: Instance Method
path: "realitykit/arview/installgestures(_:for:)"
---

# installGestures(_:for:)

Installs standard gestures onto the given entity, configured to be recognized simultaneously.

## Declaration

```swift
@discardableResult @MainActor @preconcurrency func installGestures(_ gestures: ARView.EntityGestures = .all, for entity: any HasCollision) -> [any EntityGestureRecognizer]
```

## Parameters

- `gestures`: The gesture types to install.
- `entity`: The entity with which to associate the gesture recognizers.

## Return Value

Return Value The set of gesture recognizers created to handle the requested gestures.

## See Also

### Adding gesture recognizers to entities

- [gestureRecognizer(_:shouldRecognizeSimultaneouslyWith:)](realitykit/arview/gesturerecognizer(_:shouldrecognizesimultaneouslywith:).md)
