Contents

offset(from:to:)

Returns the offset between the two locations you specify.

Declaration

func offset(from: any NSTextLocation, to: any NSTextLocation) -> Int

Parameters

  • from:

    The starting location.

  • to:

    The ending location.

See Also

Finding specific content in the selection