Instance Method

draw(_:at:)

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

Declaration

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

Parameters

layer

The layer whose contents you want to draw.

point

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

Discussion

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