Contents

LinearGradient

A linear gradient.

Declaration

@frozen struct LinearGradient

Mentioned in

Overview

The gradient applies the color function along an axis, as defined by its start and end points. The gradient maps the unit space points into the bounding rectangle of each shape filled with the gradient.

When using a linear gradient as a shape style, you can also use linearGradient(_:startPoint:endPoint:).

Topics

Creating a linear gradient

See Also

Supporting types