<!--
{
  "availability" : [
    "iOS: 7.0.0 -",
    "iPadOS: 7.0.0 -",
    "macCatalyst: -",
    "macOS: 10.9.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreGraphics",
  "identifier" : "/documentation/CoreGraphics/CGMutablePath/addPath(_:transform:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Core Graphics",
      "CoreGraphics"
    ],
    "preciseIdentifier" : "s:So16CGMutablePathRefa12CoreGraphicsE03addB0_9transformySo06CGPathC0a_So17CGAffineTransformVtF"
  },
  "title" : "addPath(_:transform:)"
}
-->

# addPath(_:transform:)

Appends another path object to the path.

```
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.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)