Contents

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