fill(_:style:)
Fills this shape with a color or gradient.
Declaration
nonisolated func fill<S>(_ content: S = .foreground, style: FillStyle = FillStyle()) -> FillShapeView<Self.Content, S, Self> where S : ShapeStyleParameters
- 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.