The object for displaying a linear gradient as a component background.
- Apple News Format 1.7+
An array of color stops. Each stop sets a color and percentage.
Provide at least 2
linear for this object.
The angle of the gradient fill, in degrees. Use the angle to set the direction of the gradient. For example, a value of
180 defines a gradient that changes color from top to bottom. An angle of
90 defines a gradient that changes color from left to right.
angle is omitted, an angle of
180 (top to bottom) is used.
Linear object to cause the background for a component to be a linear gradient between two (or more) colors. Specify the colors you want to use and a percentage for each color along with an angle for the gradient and the behavior of the background when the user scrolls.
This object can be used in ComponentStyle.