Contents

fill(_:style:)

Fills this shape with a color or gradient.

Declaration

nonisolated func fill<S>(_ content: S = .foreground, style: FillStyle = FillStyle()) -> _ShapeView<Self, S> where S : ShapeStyle

Parameters

  • content:

    The color or gradient to use when filling this shape.

  • style:

    The style options that determine how the fill renders.

Return Value

A shape filled with the color or gradient you supply.

See Also

Filling a shape