---
title: enableSetNeedsDisplay
framework: glkit
role: symbol
role_heading: Instance Property
path: glkit/glkview/enablesetneedsdisplay
---

# enableSetNeedsDisplay

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

## Declaration

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

## Discussion

Discussion By default, a GLKView object respects the standard view drawing cycle for a 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 false. If your application uses a GLKViewController object to drive the rendering loop, the view controller automatically sets this property to false.

## See Also

### Drawing Your View’s Contents

- [context](glkit/glkview/context.md)
- [bindDrawable()](glkit/glkview/binddrawable().md)
- [display()](glkit/glkview/display().md)
- [snapshot](glkit/glkview/snapshot.md)
