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

# ignore(_:for:)

Tells the gesture recognizer to ignore a specific touch of the given event.

```
@MainActor func ignore(_ touch: UITouch, for event: UIEvent)
```

## Parameters

`touch`

A [`UITouch`](/documentation/UIKit/UITouch) object that is part of the current multi-touch sequence and associated with `event`.

`event`

A [`UIEvent`](/documentation/UIKit/UIEvent) object that includes a reference to `touch`.

## Discussion

If a touch isn’t part of this gesture you may pass it to this method, causing it to be ignored. `UIGestureRecognizer` does not cancel ignored touches on the associated view. This method is intended to be called, not overridden.

---

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)