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
pathparameter 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
move(to:transform:)addLine(to:transform:)addLines(between:transform:)addRect(_:transform:)addRects(_:transform:)addEllipse(in:transform:)addRoundedRect(in:cornerWidth:cornerHeight:transform:)addArc(center:radius:startAngle:endAngle:clockwise:transform:)addArc(tangent1End:tangent2End:radius:transform:)addRelativeArc(center:radius:startAngle:delta:transform:)addCurve(to:control1:control2:transform:)addQuadCurve(to:control:transform:)closeSubpath()