index(_:offsetByRuns:)
Returns the position of the run offset a given number of runs from a given string index.
Declaration
func index(_ i: AttributedString.Index, offsetByRuns distance: Int) -> AttributedString.IndexParameters
- i:
The index of a position in the string.
- distance:
The number of runs to advance by.
Return Value
The position of the run offset distance runs from position i.