---
title: "replace(command:propertyList:with:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uimenubuilder/replace(command:propertylist:with:)"
---

# replace(command:propertyList:with:)

## Declaration

```swift
@MainActor @preconcurrency func replace(command replacedAction: Selector, propertyList replacedPropertyList: Any? = nil, with replacementElements: [UIMenuElement])
```
