func index(AttributedString.Index, offsetByCharacters : Int) -> AttributedString.Index
Returns the position of a character offset a given distance, measured in characters, from a given string index.
func index(AttributedString.Index, offsetByUnicodeScalars : Int) -> AttributedString.Index
Returns the position of the Unicode scalar offset a given distance, measured in Unicode scalars, from a given string index.