<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "tvOS: -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIGestureRecognizer/touchesBegan(_:with:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIGestureRecognizer(im)touchesBegan:withEvent:"
  },
  "title" : "touchesBegan(_:with:)"
}
-->

# touchesBegan(_:with:)

Sent to the gesture recognizer when one or more fingers touch down in the associated view.

```
func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent)
```

## Parameters

`touches`

A set of [`UITouch`](/documentation/UIKit/UITouch) instances in the event represented by `event` that represent the touches in the [`UITouch.Phase.began`](/documentation/UIKit/UITouch/Phase-swift.enum/began) phase.

`event`

A [`UIEvent`](/documentation/UIKit/UIEvent) object representing the event to which the touches belong.

## Discussion

This method has the same exact signature as the corresponding one declared by [`UIResponder`](/documentation/UIKit/UIResponder). Through this method a gesture recognizer receives touch objects (in their [`UITouch.Phase.began`](/documentation/UIKit/UITouch/Phase-swift.enum/began) phase) before the view attached to the gesture recognizer receives them. `UIGestureRecognizer` objects are not in the responder chain, yet observe touches hit-tested to their view and their view’s subviews. After observation, the delivery of touch objects to the attached view, or their disposition otherwise, is affected by the [`cancelsTouchesInView`](/documentation/UIKit/UIGestureRecognizer/cancelsTouchesInView), [`delaysTouchesBegan`](/documentation/UIKit/UIGestureRecognizer/delaysTouchesBegan), and [`delaysTouchesEnded`](/documentation/UIKit/UIGestureRecognizer/delaysTouchesEnded) properties.

If the gesture recognizer is interpreting a continuous gesture, it should set its state to [`UIGestureRecognizer.State.began`](/documentation/UIKit/UIGestureRecognizer/State-swift.enum/began) upon receiving this message. If at any point in its handling of the touch objects the gesture recognizer determines that the multi-touch event sequence is not its gesture, it should set it state to [`UIGestureRecognizer.State.cancelled`](/documentation/UIKit/UIGestureRecognizer/State-swift.enum/cancelled).

Multiple touches are disabled by default. In order to receive multiple touch events you must set the a [`isMultipleTouchEnabled`](/documentation/UIKit/UIView/isMultipleTouchEnabled) property of the attached view instance to <doc://com.apple.documentation/documentation/Swift/true>.

---

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)