addRects(_:)
Adds a set of rectangular paths to the current path.
Declaration
func addRects(_ rects: [CGRect])Parameters
- rects:
An array of rectangles, specified in user space coordinates.
Discussion
Calling this convenience method is equivalent to repeatedly calling the addRect(_:) method for each rectangle in the array.