A style for rasterizing vector shapes.


@frozen struct FillStyle



init(eoFill: Bool, antialiased: Bool)

Creates a new fill style with the specified settings.

Instance Properties

var isAntialiased: Bool

A Boolean value that indicates whether to apply antialiasing the edges of a shape.

var isEOFilled: Bool

A Boolean value that indicates whether to use the even-odd rule when rendering a shape.

Operator Functions

static func != (FillStyle, FillStyle) -> Bool

Returns a Boolean value indicating whether two values are not equal.


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 LinearGradient

A linear gradient.

struct AngularGradient

An angular gradient.

struct RadialGradient

A radial gradient.

protocol ShapeStyle

A way to turn a shape into a view.

enum RoundedCornerStyle

Defines the shape of a rounded rectangle’s corners.