Options for rendering a path.


enum CGPathDrawingMode : Int32


You can pass a path drawing mode constant to the function drawPath(using:) to specify how Core Graphics should paint a graphics context’s current path.



case fill

Render the area contained within the path using the non-zero winding number rule.

case eoFill

Render the area within the path using the even-odd rule.

case stroke

Render a line along the path.

case fillStroke

First fill and then stroke the path, using the nonzero winding number rule.

case eoFillStroke

First fill and then stroke the path, using the even-odd rule.

See Also

Drawing the Current Graphics Path

func drawPath(using: CGPathDrawingMode)

Draws the current path using the provided drawing mode.

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