Contents

addPath(_:transform:)

Appends another path value to this path.

Declaration

mutating func addPath(_ path: Path, transform: CGAffineTransform = .identity)

Parameters

  • path:

    The path to add.

  • transform:

    An affine transform to apply to the path parameter before adding to this path. Defaults to the identity transform if not specified.

Discussion

If the path parameter is a non-empty empty path, its elements are appended in order to this path. Afterward, the start point and current point of this path are those of the last subpath in the path parameter.

See Also

Drawing a path