Structure

LinearGradient

A linear gradient.

Declaration

@frozen struct LinearGradient

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.

Topics

Instance Methods

Relationships

Conforms To

See Also

Paints, Styles, and Gradients

struct Color

An environment-dependent color.

struct ImagePaint

A paint type that repeats an image over the infinite plane.

struct Gradient

A color gradient represented as an array of color stops, each having a parametric location value.

struct AngularGradient

An angular gradient.

struct RadialGradient

A radial gradient.

struct FillStyle

A style for rasterizing vector shapes.

protocol ShapeStyle

A way to turn a shape into a view.

enum RoundedCornerStyle

Defines the shape of a rounded rectangle’s corners.