characterIndex(for:)
Returns character index for a point inside the line fragment coordinate system.
Declaration
func characterIndex(for point: CGPoint) -> IntParameters
- point:
The distance is from the upstream edge.
Return Value
An integer that represents the character index at point.