<!--
{
  "availability" : [
    "iOS: 9.0.0 -",
    "iPadOS: 9.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.11.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MetalKit",
  "identifier" : "/documentation/MetalKit/MTKView/enableSetNeedsDisplay",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "MetalKit"
    ],
    "preciseIdentifier" : "c:objc(cs)MTKView(py)enableSetNeedsDisplay"
  },
  "title" : "enableSetNeedsDisplay"
}
-->

# enableSetNeedsDisplay

A Boolean value that indicates whether the view responds to <doc://com.apple.documentation/documentation/UIKit/UIView/setNeedsDisplay()>.

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

## Discussion

If this value and the value of [`isPaused`](/documentation/MetalKit/MTKView/isPaused) are <doc://com.apple.documentation/documentation/Swift/true>, the view behaves similarly to a <doc://com.apple.documentation/documentation/UIKit/UIView> object, responding to calls to <doc://com.apple.documentation/documentation/UIKit/UIView/setNeedsDisplay()>. In this case, the view’s internal draw loop is paused and updates are event-driven instead.

The default value is <doc://com.apple.documentation/documentation/Swift/false>.

---

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)