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