One Logo Pool Ball
SwiftUICore · IOS API REFERENCE

Gradient.Stop

struct · iOS 13.0+ · SDK 27.1

@frozen struct Stop

One color stop in the gradient.

Members (5)

init · iOS 13.0+

init

TypeScript
static init(color: Color, location: number): Gradient_Stop
Swift declaration
init(color: Color, location: CGFloat)

Creates a color stop with a color and location.

get · iOS 13.0+

color

TypeScript
get color(): Color
Swift declaration
var color: Color

The color for the stop.

set · iOS 13.0+

color

TypeScript
set color(value: Color)
Swift declaration
var color: Color

The color for the stop.

get · iOS 13.0+

location

TypeScript
get location(): number
Swift declaration
var location: CGFloat

The parametric location of the stop. This value must be in the range `[0, 1]`.

set · iOS 13.0+

location

TypeScript
set location(value: number)
Swift declaration
var location: CGFloat

The parametric location of the stop. This value must be in the range `[0, 1]`.

Skipped declarations

No declarations were skipped in this snapshot.

All SwiftUICore types →