accessibilityLineNumber(for:)
Returns the line number that contains the specified point.
Declaration
@MainActor func accessibilityLineNumber(for point: CGPoint) -> IntParameters
- point:
A point within the bounds of the receiver’s view space, in screen coordinates. That is, a point for which
[self pointInside:point withEvent:event] == YES.
Return Value
The line number that contains the specified point or NSNotFound if the point indicates an empty area within the receiver’s rectangle. By default, this method returns NSNotFound.
Discussion
This method is called only when point is within the bounds of the view or element.