stroke(_:)
Paints a rectangular path.
Declaration
func stroke(_ rect: CGRect)Parameters
- rect:
A rectangle, specified in user space coordinates.
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.