---
title: "updateCurrentSelection(to:from:in:)"
framework: browserenginekit
role: symbol
role_heading: Instance Method
path: "browserenginekit/betextinput/updatecurrentselection(to:from:in:)"
---

# updateCurrentSelection(to:from:in:)

Indicates the point where the text interaction gesture changes.

## Declaration

```swift
func updateCurrentSelection(to point: CGPoint, from gestureType: BEGestureType, in state: UIGestureRecognizer.State)
```

## Parameters

- `point`: The new location of the gesture.
- `gestureType`: The type of gesture the system tracks.
- `state`: The state of the gesture.

## Mentioned in

Integrating custom browser text views with UIKit

## Discussion

Discussion In your implementation of this method, notify the system that your app handles the change by calling selectionChangedWithGesture(at:gesture:state:flags:).

## See Also

### Managing selection

- [selectedText](browserenginekit/betextinput/selectedtext.md)
- [selectedTextRange](browserenginekit/betextinput/selectedtextrange.md)
- [isSelectionAtDocumentStart](browserenginekit/betextinput/isselectionatdocumentstart.md)
- [selectPosition(at:completionHandler:)](browserenginekit/betextinput/selectposition(at:completionhandler:).md)
- [selectPosition(at:for:completionHandler:)](browserenginekit/betextinput/selectposition(at:for:completionhandler:).md)
- [adjustSelection(by:completionHandler:)](browserenginekit/betextinput/adjustselection(by:completionhandler:).md)
