UIColor.linearGradient()
Creates a linear gradient.
static linearGradient(
angle: number,
...stops: UIColor.Gradient.Stop[]
): UIColor.Gradient;
Parameters
- angle — The angle in degrees (e.g. 180 for top-to-bottom, 90 for left-to-right).
- stops — Color stops (UIColor instance or
[UIColor, position 0-1]).
Return value
A UIColor.Gradient instance.
Related
class UIColor
A class that represents a single color value.
