Protocol

ShapeStyle

A way to turn a shape into a view.

Declaration

protocol ShapeStyle

Topics

Instance Properties

var body: _ShapeView<Rectangle, Self>

See Also

Paints, Styles, and Gradients

struct Color

An environment-dependent color.

Beta
struct ImagePaint

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

Beta
struct Gradient

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

Beta
struct LinearGradient

A linear gradient.

Beta
struct AngularGradient

An angular gradient.

Beta
struct RadialGradient

A radial gradient.

Beta
struct FillStyle

A style for rasterizing vector shapes.

Beta
enum RoundedCornerStyle

Defines the shape of a rounded rectangle’s corners.

Beta

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software