Instance Method


Draws the contents of a layer object at the specified point.


func draw(_ layer: CGLayer, at point: CGPoint)



The layer whose contents you want to draw.


The location, in current user space coordinates, to use as the origin for the drawing.


Calling this method is equivalent to calling the draw(_:in:) method with a rectangle whose origin is the specified point and whose size matches that of the specified layer.

See Also

Drawing Core Graphics Layers

func draw(CGLayer, in: CGRect)

Draws the contents of a layer object into the specified rectangle.

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