Contents

interactionShouldBegin(_:at:)

Asks the delegate whether the text interaction should begin.

Declaration

optional func interactionShouldBegin(_ interaction: UITextInteraction, at point: CGPoint) -> Bool

Parameters

  • interaction:

    The text interaction that called this method.

  • point:

    The position on the screen where the user is touching.

Return Value

A Boolean value indicating whether the interaction should begin. Return true to let the interaction begin; otherwise, return false to prevent the interaction from beginning.

See Also

Handling text interaction events