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

# findSelected(_:)

Begins a search for the selected content in your browser text view.

## Declaration

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

## Parameters

- `sender`: The object calling this method.

## Discussion

Discussion UIKit calls this method when someone selects Use Selection for Find from an editing menu. Present the UI for finding text in your view, and use the selected text for the search. To present the standard system UI for finding text, and support standard keyboard shortcuts, add a UIFindInteraction to your browser text view.

## See Also

### Finding and replacing text

- [promptForReplace(_:)](browserenginekit/berespondereditactions/promptforreplace(_:).md)
- [replace(_:)](browserenginekit/berespondereditactions/replace(_:).md)
- [addShortcut(_:)](browserenginekit/berespondereditactions/addshortcut(_:).md)
