static var foreground: GraphicsContext .Shading
A shading instance that fills with the foreground style from the graphics context’s environment.
Availability 有効性
Technology
static func style<S>(_ style: S) -> GraphicsContext
.Shading
where S : ShapeStyle
A shading instance filled with a shape style.
style
A Shape
instance to draw with.
Styles with geometry defined in a unit coordinate space map that space to the rectangle associated with the drawn object. You can adjust that using the in(_:)
method. The shape style might affect the blend mode and opacity of the drawn object.
static var foreground: GraphicsContext .Shading