An optional array of NSNumber objects defining the location of each gradient stop. Animatable.
- iOS 3.0+
- macOS 10.6+
- UIKit for Mac 13.0+Beta
- tvOS 9.0+
The gradient stops are specified as values between
1. The values must be monotonically increasing. If
nil, the stops are spread uniformly across the range. Defaults to
When rendered, the colors are mapped to the output color space before being interpolated.
Gradient Style Properties
An array of
CGColorRef objects defining the color of each gradient stop. Animatable.
The end point of the gradient when drawn in the layer’s coordinate space. Animatable.
The start point of the gradient when drawn in the layer’s coordinate space. Animatable.
Style of gradient drawn by the layer.
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