Contents

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:

    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

Discussion

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