enableSetNeedsDisplay
A Boolean value that indicates whether the view responds to messages that invalidate the view’s contents.
Declaration
var enableSetNeedsDisplay: Bool { get set }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.