Contents

setNeedsDisplay(_:)

Marks the region within the specified rectangle as needing to be updated.

Declaration

func setNeedsDisplay(_ r: CGRect)

Parameters

  • r:

    The rectangular region of the layer to mark as invalid. You must specify this rectangle in the layer’s own coordinate system.

See Also

Updating layer display