---
title: "copy(with:)"
framework: swiftui
role: symbol
role_heading: Instance Method
platforms: [macOS 14.4+]
path: "swiftui/nshostingmenu/copy(with:)"
---

# copy(with:)

## Declaration

```swift
override dynamic func copy(with zone: NSZone? = nil) -> Any
```
