init
TypeScriptstatic init(color: Color, location: number): Gradient_StopSwift declarationinit(color: Color, location: CGFloat)Creates a color stop with a color and location.
struct · iOS 13.0+ · SDK 27.1
@frozen struct StopOne color stop in the gradient.
static init(color: Color, location: number): Gradient_StopSwift declarationinit(color: Color, location: CGFloat)Creates a color stop with a color and location.
get color(): ColorSwift declarationvar color: ColorThe color for the stop.
set color(value: Color)Swift declarationvar color: ColorThe color for the stop.
get location(): numberSwift declarationvar location: CGFloatThe parametric location of the stop. This value must be in the range `[0, 1]`.
set location(value: number)Swift declarationvar location: CGFloatThe parametric location of the stop. This value must be in the range `[0, 1]`.
No declarations were skipped in this snapshot.