You don’t use the ShapeStyle protocol directly. Instead, use one of the concrete styles that SwiftUI defines. To indicate a specific color or pattern, you can use Color or the style returned by image(_:sourceRect:scale:), or one of the gradient types, like the one returned by radialGradient(_:center:startRadius:endRadius:). To set a color that’s appropriate for a given context on a given platform, use one of the semantic styles, like background or primary.
You can use a shape style by:
Filling a shape with a style with the fill(_:style:) modifier:
An angular gradient, which applies the color function as the angle changes between the start and end angles, and anchored to a relative center point within the filled shape.