locations
An optional array of NSNumber objects defining the location of each gradient stop. Animatable.
Declaration
var locations: [NSNumber]? { get set }Discussion
The gradient stops are specified as values between 0 and 1. The values must be monotonically increasing. If nil, the stops are spread uniformly across the range. Defaults to nil.
When rendered, the colors are mapped to the output color space before being interpolated.