Contents

UIGraphicsImageRenderer.DrawingActions

A closure for drawing an image.

Declaration

typealias DrawingActions = (UIGraphicsImageRendererContext) -> Void

Discussion

UIGraphicsImageDrawingActions defines a block type that takes a 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. 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 for an example use of a UIGraphicsImageDrawingActions block.

See Also

Creating images