Type Alias

UIGraphicsImageRenderer.DrawingActions

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, as listed in Rendering Images. 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.