<!--
{
  "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/updateSelection(extent:boundary:completionHandler:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "BrowserEngineKit"
    ],
    "preciseIdentifier" : "c:objc(pl)BETextInput(im)updateSelectionWithExtentPoint:boundary:completionHandler:"
  },
  "title" : "updateSelection(extent:boundary:completionHandler:)"
}
-->

# updateSelection(extent:boundary:completionHandler:)

Includes the text up to the given point in the current text selection.

```
func updateSelection(extent point: CGPoint, boundary granularity: UITextGranularity, completionHandler: @escaping @Sendable (Bool) -> Void)
```

```
func updateSelection(extent point: CGPoint, boundary granularity: UITextGranularity) async -> Bool
```

## Parameters

`point`

The location in the document to include in the updated selection.

`granularity`

The amount of text to include in the updated selection.

`completionHandler`

A block you call after your text view handles the gesture.

---

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)