Instance Method

strokePath()

Paints a line along the current path.

Declaration

func strokePath()

Parameters

c

A graphics context.

Discussion

The line width and stroke color of the context’s graphics state are used to paint the path. The current path is cleared as a side effect of calling this function.

See Also

Drawing the Current Graphics Path

func drawPath(using: CGPathDrawingMode)

Draws the current path using the provided drawing mode.

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.

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