---
title: mutableCopy()
framework: objectivec
role: symbol
role_heading: Instance Method
path: objectivec/nsobject-swift.class/mutablecopy()
---

# mutableCopy()

Returns the object returned by mutableCopy(with:) where the zone is nil.

## Declaration

```swift
func mutableCopy() -> Any
```

## Return Value

Return Value The object returned by the NSMutableCopying protocol method mutableCopy(with:), where the zone is nil.

## Discussion

Discussion This is a convenience method for classes that adopt the NSMutableCopying protocol. An exception is raised if there is no implementation for mutableCopy(with:).

## See Also

### Creating, Copying, and Deallocating Objects

- [init()](objectivec/nsobject-swift.class/init().md)
- [copy()](objectivec/nsobject-swift.class/copy().md)
