The color stops of the gradient, defining each component color and their relative location along the gradient’s full length.
Type Method
型メソッド
conic
conicGradient(stops:center:angle:)
A conic gradient defined by a collection of color stops that completes a full turn.
Availability 有効性
- iOS 13.0+
- iPadOS 13.0+
- macOS 10.15+
- Mac Catalyst 13.0+
- tvOS 13.0+
- watchOS 6.0+
Technology
- Swift
UI
Declaration 宣言
static func conicGradient(stops: [Gradient
.Stop
], center: UnitPoint
, angle: Angle
= .zero) -> AngularGradient
Available when
Self
is AngularGradient
.Parameters パラメータ
stops
center
The relative center of the gradient, mapped from the unit space into the bounding rectangle of the filled shape.
angle
The angle to offset the beginning of the gradient’s full turn.
Discussion 議論
For more information on how to use angular gradients, see conic
.