Instance Property


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


var enableSetNeedsDisplay: Bool { get set }


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

Drawing Your View’s Contents

func draw()

Redraws the view’s contents immediately.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software