Type Method 型メソッド

style(_:)

Returns a shading instance that fills with the given shape style.

Declaration 宣言

static func style<S>(_ style: S) -> GraphicsContext.Shading where S : ShapeStyle

Return Value 戻り値

A shading instance filled with a shape style.

Parameters パラメータ

style

A ShapeStyle instance to draw with.

Discussion 議論

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.

See Also 参照

Other Shape Styles