Options for rendering a path.
On This Page
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.
Render the area contained within the path using the non-zero winding number rule.
Render the area within the path using the even-odd rule.
Render a line along the path.
First fill and then stroke the path, using the nonzero winding number rule.
First fill and then stroke the path, using the even-odd rule.
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.
Paints a line along the current path.
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.