index(beforeRun:)
Returns the position of the run immediately before a run indicated by an index.
Declaration
func index(beforeRun i: AttributedString.Index) -> AttributedString.IndexParameters
- i:
The index of a run in the attributed string.
Return Value
The position of the first run immediately before the beginning of the i-th run.