Contents

addPath(_:)

Adds a previously created path object to the current path in a graphics context.

Declaration

func addPath(_ path: CGPath)

Parameters

  • path:

    A previously created path object. See Cgpath.

Discussion

If the source path is non-empty, then its path elements are appended in order onto the current path. The current transformation matrix (CTM) is applied to the points before adding them to the path.

After the call completes, the start point and current point of the path are those of the last subpath in path.

See Also

Constructing a Current Graphics Path