Enumeration

Path.Element

An element of a path.

Declaration

@frozen enum Path.Element

Topics

Enumeration Cases

case closeSubpath

A line from the start point of the current subpath (if any) to the current point, which terminates the subpath.

case curve(to: CGPoint, control1: CGPoint, control2: CGPoint)

A cubic Bézier curve from the previous current point to the given end-point, using the two control points to define the curve.

case line(to: CGPoint)

A line from the previous current point to the given point, which becomes the new current point.

case move(to: CGPoint)

A path element that terminates the current subpath (without closing it) and defines a new current point.

case quadCurve(to: CGPoint, control: CGPoint)

A quadratic Bézier curve from the previous current point to the given end-point, using the single control point to define the curve.

Operator Functions

static func != (Path.Element, Path.Element) -> Bool

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

Relationships

Conforms To