foregroundStyle(_:)
Sets the axis content’s foreground elements to use a given style.
Declaration
func foregroundStyle<S>(_ style: S) -> some AxisMark where S : ShapeStyle
Parameters
- style:
The color or pattern to use when filling in the foreground elements.
Return Value
An axis content that uses the given foreground style.