fill(_:)
Paints a rectangular area with the currently selected fill color.
Declaration
func fill(_ rect: CGRect)Parameters
- rect:
A rectangle, specified in the Core Graphics coordinate space with values in points.
Discussion
Before calling this method, select the fill color with the setFill() method on an instance of UIColor.
For an example of how to use this method, see Creating an image with an image renderer in UIGraphicsImageRenderer.