index(beforeCharacter:)
Returns the position of the character immediately before another charcter indicated by an index.
Declaration
func index(beforeCharacter i: AttributedString.Index) -> AttributedString.IndexParameters
- i:
The index of a character in the attributed string.
Return Value
The position of the character immediately before the character at index i.