An instance of a type that conforms to Shape that SwiftUI draws behind the view using the background shape style.
fillStyle
The FillStyle to use when drawing the shape. The default style uses the nonzero winding number rule and antialiasing.
Discussion
議論
This modifier behaves like background(_:in:fillStyle:), except that it always uses the background shape style to fill the specified shape. For example, you can create a Path that outlines a trapezoid:
Without the background modifier, the fill color shows through the label. With the modifier, the label’s text and icon appear backed by a shape filled with a color that’s appropriate for light or dark appearance: