---
title: exclusiveGestureBehavior
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nsview/exclusivegesturebehavior-swift.property
---

# exclusiveGestureBehavior

Declares whether gesture recognizers should be exclusive in this view and its subviews.

## Declaration

```swift
var exclusiveGestureBehavior: NSView.ExclusiveGestureBehavior { get set }
```

## Discussion

Discussion When a view is set to .exclusive, and one or more of its gesture recognizers is active, a second input event will not activate any further gesture recognizers, unless that event hit tests to this view or its subviews. Defaults to .inherit.
