Instance Property

type

Style of gradient drawn by the layer.

Declaration

@property(copy) CAGradientLayerType type;

Discussion

Defaults to kCAGradientLayerAxial.

See Also

Gradient Style Properties

colors

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

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.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software