---
title: "adjustSelectionBoundary(to:touchPhase:baseIsStart:flags:)"
framework: browserenginekit
role: symbol
role_heading: Instance Method
path: "browserenginekit/betextinput/adjustselectionboundary(to:touchphase:baseisstart:flags:)"
---

# adjustSelectionBoundary(to:touchPhase:baseIsStart:flags:)

Adjusts the start or end boundary of the current selection to the given point.

## Declaration

```swift
func adjustSelectionBoundary(to point: CGPoint, touchPhase touch: BESelectionTouchPhase, baseIsStart boundaryIsStart: Bool, flags: BESelectionFlags)
```

## Parameters

- `point`: The new boundary point of the selection.
- `touch`: The touch phase of the gesture.
- `boundaryIsStart`: true if the point is at the new start of the selection; false if it’s at the end.
- `flags`: Extra information about the selection.

## Mentioned in

Integrating custom browser text views with UIKit

## Discussion

Discussion When you receive this method, call selectionBoundaryAdjusted(to:touchPhase:flags:) to notify the system that your text view handled the update.
