<!--
{
  "availability" : [
    "iOS: 17.4.0 -",
    "iPadOS: 17.4.0 -",
    "tvOS: 17.4.0 -",
    "visionOS: 1.1.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "BrowserEngineKit",
  "identifier" : "/documentation/BrowserEngineKit/BETextInput/selectTextForEditMenuWithLocation(inView:completionHandler:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "BrowserEngineKit"
    ],
    "preciseIdentifier" : "c:objc(pl)BETextInput(im)selectTextForEditMenuWithLocationInView:completionHandler:"
  },
  "title" : "selectTextForEditMenuWithLocation(inView:completionHandler:)"
}
-->

# selectTextForEditMenuWithLocation(inView:completionHandler:)

Indicates the edit menu displays at the given location in the text input view’s coordinate space.

```
func selectTextForEditMenuWithLocation(inView locationInView: CGPoint, completionHandler: @escaping @Sendable (Bool, String?, NSRange) -> Void)
```

```
func selectTextForEditMenuWithLocation(inView locationInView: CGPoint) async -> (Bool, String?, NSRange)
```

## Discussion

The completion handler arguments are:

- A Boolean value that indicates whether the menu displays
- A string that represents the text context around the updated selection range (generally, this encompasses the paragraph containing the selection range)
- The range of the updated selection relative to the paragraph context

---

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)