The colors of the gradient, evenly spaced along its full length.
Type Method
型メソッド
angular
angularGradient(colors:center:startAngle:endAngle:)
An angular gradient defined by a collection of colors.
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 angularGradient(colors: [Color
], center: UnitPoint
, startAngle: Angle
, endAngle: Angle
) -> AngularGradient
Available when
Self
is AngularGradient
.Parameters パラメータ
colors
center
The relative center of the gradient, mapped from the unit space into the bounding rectangle of the filled shape.
startAngle
The angle that marks the beginning of the gradient.
endAngle
The angle that marks the end of the gradient.
Discussion 議論
For more information on how to use angular gradients, see angular
.