---
title: cancelsTouchesInView
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uigesturerecognizer/cancelstouchesinview
---

# cancelsTouchesInView

A Boolean value that determines whether touches are delivered to a view when a gesture is recognized.

## Declaration

```swift
var cancelsTouchesInView: Bool { get set }
```

## Discussion

Discussion When this property is true (the default) and the gesture recognizer recognizes its gesture, the touches of that gesture that are pending aren’t delivered to the view and previously delivered touches are canceled through a touchesCancelled(_:with:) message sent to the view. If a gesture recognizer doesn’t recognize its gesture or if the value of this property is false, the view receives all touches in the multi-touch sequence.

## See Also

### Canceling and delaying touches

- [delaysTouchesBegan](uikit/uigesturerecognizer/delaystouchesbegan.md)
- [delaysTouchesEnded](uikit/uigesturerecognizer/delaystouchesended.md)
