<!--
{
  "availability" : [
    "iOS: 5.0.0 - 12.0.0",
    "iPadOS: 5.0.0 - 12.0.0",
    "tvOS: 9.0.0 - 12.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "GLKit",
  "identifier" : "/documentation/GLKit/GLKView/enableSetNeedsDisplay",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "GLKit"
    ],
    "preciseIdentifier" : "c:objc(cs)GLKView(py)enableSetNeedsDisplay"
  },
  "title" : "enableSetNeedsDisplay"
}
-->

# enableSetNeedsDisplay

A Boolean value that indicates whether the view responds to messages that invalidate the view’s contents.

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

## Discussion

By default, a `GLKView` object respects the standard view drawing cycle for a <doc://com.apple.documentation/documentation/UIKit/UIView> object. However, many OpenGL ES applications need to update their contents explicitly in an animation rendering loop. When updating your contents in a rendering loop, the normal on-demand mechanism for view updates can be disabled by setting the value of this property to <doc://com.apple.documentation/documentation/Swift/false>. If your application uses a [`GLKViewController`](/documentation/GLKit/GLKViewController) object to drive the rendering loop, the view controller automatically sets this property to <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)