<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 16.0.0 -",
    "tvOS: 16.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIResponderStandardEditActions/useSelectionForFind(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(pl)UIResponderStandardEditActions(im)useSelectionForFind:"
  },
  "title" : "useSelectionForFind(_:)"
}
-->

# useSelectionForFind(_:)

Begins a search for the selected content in your app’s interface.

```
optional func useSelectionForFind(_ sender: Any?)
```

## Parameters

`sender`

The object calling this method.

## Discussion

UIKit calls this method when the user selects the Use Selection For Find command from an editing menu. Your implementation should present the UI for finding textual content in your view and use the selected text for the search.

For example, a view using a find interaction might call [`presentFindNavigator(showingReplace:)`](/documentation/UIKit/UIFindInteraction/presentFindNavigator(showingReplace:)) and pass the selected text as the query string.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)