displayIfNeeded(_:)
Acts as Displayifneeded(), confining drawing to a specified region of the view.
Declaration
func displayIfNeeded(_ rect: NSRect)Parameters
- rect:
A rectangle defining the region to be redrawn. It should be specified in the coordinate system of the view.