<!--
{
  "availability" : [
    "macOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSView/exclusiveGestureBehavior-swift.property",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSView(py)exclusiveGestureBehavior"
  },
  "title" : "exclusiveGestureBehavior"
}
-->

# exclusiveGestureBehavior

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

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

## 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`.

---

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)