<!--
{
  "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/UIGraphicsImageRenderer/DrawingActions",
  "metadataVersion" : "0.1.0",
  "role" : "Type Alias",
  "symbol" : {
    "kind" : "Type Alias",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:@T@UIGraphicsImageDrawingActions"
  },
  "title" : "UIGraphicsImageRenderer.DrawingActions"
}
-->

# UIGraphicsImageRenderer.DrawingActions

A closure for drawing an image.

```
typealias DrawingActions = (UIGraphicsImageRendererContext) -> Void
```

## Discussion

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

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

See [`Creating an image with an image renderer`](/documentation/UIKit/UIGraphicsImageRenderer#Creating-an-image-with-an-image-renderer) for an example use of a `UIGraphicsImageDrawingActions` block.

---

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)