---
title: mutableCopy()
framework: coregraphics
role: symbol
role_heading: Instance Method
path: coregraphics/cgpath/mutablecopy()
---

# mutableCopy()

Creates a mutable copy of an existing graphics path.

## Declaration

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

## Return Value

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

## Discussion

Discussion You can modify a mutable graphics path by calling the various path geometry functions, such as CGPathAddArc, CGPathAddLineToPoint, and CGPathMoveToPoint.

## See Also

### Copying a Graphics Path

- [mutableCopy(using:)](coregraphics/cgpath/mutablecopy(using:).md)
