offset(from:to:)
Returns the offset between the two locations you specify.
Declaration
func offset(from: any NSTextLocation, to: any NSTextLocation) -> IntParameters
- from:
The starting location.
- to:
The ending location.
Returns the offset between the two locations you specify.
func offset(from: any NSTextLocation, to: any NSTextLocation) -> IntThe starting location.
The ending location.