Contents

addPath(_:transform:)

Appends another path object to the path.

Declaration

func addPath(_ path: CGPath, 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 path 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

Constructing a Graphics Path