The properties shared by all gradient fill types.
Technology
- Apple News Format 1.7+
Properties
color Stops
An array of color stops. Each stop sets a color and location along the gradient.
Provide at least 2 color
items.
type
string
The type of gradient; for example linear
.
attachment
string
A string that indicates how the fill
should behave when a user scrolls.
Valid values:
scroll
(default). The fill scrolls along with its component.fixed
. The fill stays at a fixed position within the viewport.
Discussion
This is an abstract definition. Do not use this object type directly; use only the object that extends it, for example LinearGradientFill.
This object can be used in ComponentStyle.