LinearGradient
A linear gradient.
Declaration
@frozen struct LinearGradientMentioned 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:).