adjustSelectionBoundary(to:touchPhase:baseIsStart:flags:)
Adjusts the start or end boundary of the current selection to the given point.
Declaration
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:
trueif thepointis at the new start of the selection;falseif it’s at the end. - flags:
Extra information about the selection.
Mentioned in
Discussion
When you receive this method, call selectionBoundaryAdjusted(to:touchPhase:flags:) to notify the system that your text view handled the update.