Contents

AnyGradient

A color gradient.

Declaration

@frozen struct AnyGradient

Overview

When used as a ShapeStyle, this type draws a linear gradient with start-point [0.5, 0] and end-point [0.5, 1].

Topics

Creating a gradient

Working with color spaces

See Also

Styling content