draw(in:forPageAt:)
Draws the portion of a print formatter’s content for the specified area of the specified page.
Declaration
func draw(in rect: CGRect, forPageAt pageIndex: Int)Parameters
- rect:
The area in which to draw the content.
- pageIndex:
The number of the page of content to draw.
Discussion
This method is called by the default implementation of drawPrintFormatter:forPageAtIndex: of the UIPrintPageRenderer class for each print formatter associated with a page.