UIGraphicsPDFRenderer.DrawingActions
A closure for drawing PDF content.
Declaration
typealias DrawingActions = (UIGraphicsPDFRendererContext) -> VoidDiscussion
UIGraphicsPDFDrawingActions defines a block type that takes a UIGraphicsPDFRendererContext object as an argument and has no return value.
You provide a block of this type as an argument to the PDF drawing methods on UIGraphicsPDFRenderer. Your block should use the provided PDF renderer context to perform the drawing operations you want the renderer to execute.
See Creating a PDF with a PDF renderer for an example use of a UIGraphicsPDFDrawingActions block.