<!--
{
  "availability" : [
    "iOS: 10.0.0 -",
    "iPadOS: 10.0.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: 10.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIGraphicsDrawingActions",
  "metadataVersion" : "0.1.0",
  "role" : "Type Alias",
  "symbol" : {
    "kind" : "Type Alias",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:@T@UIGraphicsDrawingActions"
  },
  "title" : "UIGraphicsDrawingActions"
}
-->

# UIGraphicsDrawingActions

A closure that executes a set of drawing instructions that the renderer applies to the Core Graphics context.

```
typealias UIGraphicsDrawingActions = (UIGraphicsRendererContext) -> Void
```

## Discussion

[`UIGraphicsDrawingActions`](/documentation/UIKit/UIGraphicsDrawingActions) defines a block type that takes a [`UIGraphicsRendererContext`](/documentation/UIKit/UIGraphicsRendererContext) object as an argument and has no return value.

You provide a block of this type as an argument to the graphics drawing methods on [`UIGraphicsRenderer`](/documentation/UIKit/UIGraphicsRenderer). Your block should use the provided renderer context to perform the drawing operations you want the renderer to execute.

## See Also

[`UIGraphicsImageRenderer.DrawingActions`](/documentation/UIKit/UIGraphicsImageRenderer/DrawingActions)

A closure for drawing an image.

[`UIGraphicsPDFRenderer.DrawingActions`](/documentation/UIKit/UIGraphicsPDFRenderer/DrawingActions)

A closure for drawing PDF content.



---

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)