<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.15.0 -",
    "tvOS: 13.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 6.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/Path/addPath(_:transform:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI4PathV03addC0_9transformyAC_So17CGAffineTransformVtF"
  },
  "title" : "addPath(_:transform:)"
}
-->

# addPath(_:transform:)

Appends another path value to this path.

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

---

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)