---
title: enableSetNeedsDisplay
framework: metalkit
role: symbol
role_heading: Instance Property
path: metalkit/mtkview/enablesetneedsdisplay
---

# enableSetNeedsDisplay

A Boolean value that indicates whether the view responds to setNeedsDisplay().

## Declaration

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

## Discussion

Discussion If this value and the value of isPaused are true, the view behaves similarly to a UIView object, responding to calls to setNeedsDisplay(). In this case, the view’s internal draw loop is paused and updates are event-driven instead. The default value is false.

## See Also

### Configuring Drawing Behavior

- [preferredFramesPerSecond](metalkit/mtkview/preferredframespersecond.md)
- [isPaused](metalkit/mtkview/ispaused.md)
- [draw()](metalkit/mtkview/draw().md)
- [presentsWithTransaction](metalkit/mtkview/presentswithtransaction.md)
