Type Method 型メソッド

conicGradient(_:center:angle:options:)

Returns a shading instance that fills a conic (angular) gradient.

Declaration 宣言

static func conicGradient(_ gradient: Gradient, center: CGPoint, angle: Angle = Angle(), options: GraphicsContext.GradientOptions = GradientOptions()) -> GraphicsContext.Shading

Return Value 戻り値

A shading instance filled with a conic gradient.

Parameters パラメータ

gradient

A Gradient instance that defines the colors of the gradient.

center

The point in the current user space on which SwiftUI centers the gradient.

angle

The angle about the center that SwiftUI uses to start and finish the gradient. The gradient sweeps all the way around the center.

options

Options that you use to configure the gradient.