---
title: "draw(_:at:)"
framework: coregraphics
role: symbol
role_heading: Instance Method
path: "coregraphics/cgcontext/draw(_:at:)"
---

# draw(_:at:)

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

## Declaration

```swift
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

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

- [draw(_:in:)](coregraphics/cgcontext/draw(_:in:).md)
