Skip to main content
colors
Color[]
An array of colors for the gradient. Colors transition evenly between them.
startPoint
UnitPoint
The starting point of the gradient line. See UnitPoint. Defaults to "top".
endPoint
UnitPoint
The ending point of the gradient line. See UnitPoint. Defaults to "bottom".

Support

Usage

As a standalone view

Top-to-bottom gradient

Diagonal gradient

Horizontal gradient

As a fill

As a foreground style

As a background

See Also