<!--
{
  "availability" : [
    "iOS: 7.0.0 -",
    "iPadOS: 7.0.0 -",
    "macCatalyst: -",
    "macOS: 10.9.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreGraphics",
  "identifier" : "/documentation/CoreGraphics/CGContext/draw(_:at:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Core Graphics",
      "CoreGraphics"
    ],
    "preciseIdentifier" : "s:So12CGContextRefa12CoreGraphicsE4draw_2atySo07CGLayerB0a_So7CGPointVtF"
  },
  "title" : "draw(_:at:)"
}
-->

# draw(_:at:)

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

```
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:)`](/documentation/CoreGraphics/CGContext/draw(_:in:)) method with a rectangle whose origin is the specified point and whose size matches that of the specified layer.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)