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

# selectPosition(at:completionHandler:)

Sets the selection caret to the given point.

```
func selectPosition(at point: CGPoint, completionHandler: @escaping @Sendable () -> Void)
```

```
func selectPosition(at point: CGPoint) async
```

## Parameters

`point`

The caret’s new location in the text view.

`completionHandler`

A closure that you call when the 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)