---
title: "touchesBegan(_:with:)"
framework: realitykit
role: symbol
role_heading: Instance Method
path: "realitykit/entityrotationgesturerecognizer/touchesbegan(_:with:)"
---

# touchesBegan(_:with:)

Sent to the gesture recognizer when one or more fingers touch down on the associated entity.

## Declaration

```swift
@MainActor @preconcurrency override dynamic func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent)
```

## Parameters

- `touches`: A set of UITouch instances in the event represented by event that represent the touches in the UITouch.Phase.began phase.
- `event`: A UIEvent object representing the event to which the touches belong.

## See Also

### Using the recognizer

- [entity](realitykit/entityrotationgesturerecognizer/entity.md)
- [canPrevent(_:)](realitykit/entityrotationgesturerecognizer/canprevent(_:).md)
