Instance Property

colors

An array of CGColorRef objects defining the color of each gradient stop. Animatable.

Declaration

@property(copy) NSArray *colors;

Discussion

Defaults to nil.

See Also

Gradient Style Properties

locations

An optional array of NSNumber objects defining the location of each gradient stop. Animatable.

endPoint

The end point of the gradient when drawn in the layer’s coordinate space. Animatable.

startPoint

The start point of the gradient when drawn in the layer’s coordinate space. Animatable.

type

Style of gradient drawn by the layer.