Appends a rectangle to a mutable graphics path.
- iOS 2.0+
- macOS 10.2+
- UIKit for Mac 13.0+Beta
- tvOS 9.0+
- watchOS 2.0+
- Core Graphics
The mutable path to change.
A pointer to an affine transformation matrix, or
NULLif no transformation is needed. If specified, Core Graphics applies the transformation to the rectangle before adding it to the path.
The rectangle to add.
This is a convenience function that adds a rectangle to a path. Calling this function is equivalent to using
CGRect and related functions to find the corners of the rectangle, then using the
CGPath functions to add each line segment of the rectangle.