strokePath(_:in:)
Draws a line along the specified path.
Declaration
func strokePath(_ path: CGPath, in context: CGContext)Parameters
- path:
The path to draw.
- context:
The graphics context in which to draw the path.
Discussion
You must set the current stroke color before calling this method. Typically you do this by calling the applyStrokeProperties(to:atZoomScale:) method prior to drawing. If the strokeColor property is currently nil, this method does nothing.