Contents

fill(_:)

Paints the area contained within the provided rectangle, using the fill color in the current graphics state.

Declaration

func fill(_ rect: CGRect)

Parameters

  • rect:

    A rectangle, in user space coordinates.

Discussion

The current path is cleared as a side effect of calling this function.

See Also

Drawing Shapes