selectText(in:at:completionHandler:)
Selects the text within the given granularity at the given point in the text view.
Declaration
func selectText(in granularity: UITextGranularity, at point: CGPoint, completionHandler: @escaping @Sendable () -> Void)func selectText(in granularity: UITextGranularity, at point: CGPoint) asyncParameters
- granularity:
The amount of text to select.
- point:
The location of the selection in the text view.
- completionHandler:
A block you call after your text view handles the gesture.