Contents

draw(in:frame:options:)

Draws the entire paper contents in the specified rectangle.

Declaration

nonisolated(nonsending) func draw(in context: CGContext, frame: CGRect, options: RenderingOptions = RenderingOptions()) async

Parameters

  • context:

    The graphics context to render into.

  • frame:

    The rectangle (in the coordinate system of the graphics context) in which to draw the paper.

  • options:

    The rendering options.

Discussion

To draw a cropped portion of a paper data model, modify the bounds of the paper being drawn.