Contents

characterIndex(for:)

Returns character index for a point inside the line fragment coordinate system.

Declaration

func characterIndex(for point: CGPoint) -> Int

Parameters

  • point:

    The distance is from the upstream edge.

Return Value

An integer that represents the character index at point.

See Also

Finding specific text