---
title: "promptForReplace(_:)"
framework: browserenginekit
role: symbol
role_heading: Instance Method
path: "browserenginekit/berespondereditactions/promptforreplace(_:)"
---

# promptForReplace(_:)

Shows potential replacements for the selected content.

## Declaration

```swift
optional func promptForReplace(_ sender: Any?)
```

## Parameters

- `sender`: The object calling this method.

## Discussion

Discussion To present the standard system UI for this action, call showReplacements(forText:) in your implementation of this method.

## See Also

### Finding and replacing text

- [findSelected(_:)](browserenginekit/berespondereditactions/findselected(_:).md)
- [replace(_:)](browserenginekit/berespondereditactions/replace(_:).md)
- [addShortcut(_:)](browserenginekit/berespondereditactions/addshortcut(_:).md)
