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

# acceptsTouchEvents

A Boolean value indicating whether the view accepts touch events.

```
var acceptsTouchEvents: Bool { get set }
```

## Discussion

A view accepts touch events when the value of this property is <doc://com.apple.documentation/documentation/Swift/true>. By default, views do not accept touch events, so the default value of this property is <doc://com.apple.documentation/documentation/Swift/false>. You can override this property and return a different value if you want your view to handle touch events.

---

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)