draw(in:frame:from:darkUserInterfaceStyle:)
Draws the drawing in the specified rectangle.
Declaration
nonisolated(nonsending) func draw(in cgContext: CGContext, frame: CGRect, from sourceRect: CGRect, darkUserInterfaceStyle: Bool = false) asyncParameters
- frame:
The rectangle (in the coordinate system of the graphics context) in which to draw the drawing.
- sourceRect:
The rectangle (in the drawing coordinate system) from which to draw.
- darkUserInterfaceStyle:
Use a dark user interface style for rendering.