blendMode(_:)
Returns a new style based on the current style that uses mode as its blend mode when drawing.
Declaration
static func blendMode(_ mode: BlendMode) -> some ShapeStyle
Discussion
In most contexts the current style is the foreground but e.g. when setting the value of the background style, that becomes the current implicit style.
For example, a circle filled with the current foreground style and the overlay blend mode:
Circle().fill(.blendMode(.overlay))