Instance Method

drawPath(using:)

Draws the current path using the provided drawing mode.

Declaration

func drawPath(using mode: CGPathDrawingMode)

Parameters

mode

Discussion

The current path is cleared as a side effect of calling this function.

See Also

Drawing the Current Graphics Path

enum CGPathDrawingMode

Options for rendering a path.

func fillPath(using: CGPathFillRule)

Paints the area within the current path, as determined by the specified fill rule.

func strokePath()

Paints a line along the current path.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software