---
title: acceptsTouchEvents
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nsview/acceptstouchevents
---

# acceptsTouchEvents

A Boolean value indicating whether the view accepts touch events.

## Declaration

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

## Discussion

Discussion A view accepts touch events when the value of this property is true. By default, views do not accept touch events, so the default value of this property is false. You can override this property and return a different value if you want your view to handle touch events.

## See Also

### Properties

- [wantsExtendedDynamicRangeOpenGLSurface](appkit/nsview/wantsextendeddynamicrangeopenglsurface.md)
- [canDraw](appkit/nsview/candraw.md)
- [wantsBestResolutionOpenGLSurface](appkit/nsview/wantsbestresolutionopenglsurface.md)
