GraphicsContext.Shading
A color or pattern that you can use to outline or fill a path.
Declaration
struct ShadingOverview
Use a shading instance to describe the color or pattern of a path that you outline with a method like stroke(_:with:style:), or of the interior of a region that you fill with the fill(_:with:style:) method. Get a shading instance by calling one of the Shading structure’s factory methods. You can base shading on:
A Color.
A Gradient.
Any type that conforms to ShapeStyle.
An Image.
What you’ve already drawn into the context.
A collection of other shading instances.
Topics
Colors
Gradients
linearGradient(_:startPoint:endPoint:options:)radialGradient(_:center:startRadius:endRadius:options:)conicGradient(_:center:angle:options:)