<!--
{
  "availability" : [
    "iOS: 2.0.0 -",
    "iPadOS: 2.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.2.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreGraphics",
  "identifier" : "/documentation/CoreGraphics/CGPath/mutableCopy()",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Core Graphics",
      "CoreGraphics"
    ],
    "preciseIdentifier" : "c:@F@CGPathCreateMutableCopy"
  },
  "title" : "mutableCopy()"
}
-->

# mutableCopy()

Creates a mutable copy of an existing graphics path.

```
func mutableCopy() -> CGMutablePath?
```

## Return Value

A new, mutable, copy of the specified path. You are responsible for releasing this object.

## Discussion

You can modify a mutable graphics path by calling the various path geometry functions, such as [`CGPathAddArc`](/documentation/CoreGraphics/CGPathAddArc), [`CGPathAddLineToPoint`](/documentation/CoreGraphics/CGPathAddLineToPoint), and [`CGPathMoveToPoint`](/documentation/CoreGraphics/CGPathMoveToPoint).

---

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)