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

# mutableCopy(using:)

Creates a mutable copy of a graphics path transformed by a transformation matrix.

## Declaration

```swift
func mutableCopy(using transform: UnsafePointer<CGAffineTransform>?) -> CGMutablePath?
```

## Parameters

- `transform`: A pointer to an affine transformation matrix, or NULL if no transformation is needed. If specified, Core Graphics applies the transformation to all elements of the new path.

## Return Value

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

## See Also

### Copying a Graphics Path

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