Contents

index(_:offsetByUnicodeScalars:)

Returns the position of the Unicode scalar offset a given distance, measured in Unicode scalars, from a given string index.

Declaration

func index(_ i: AttributedString.Index, offsetByUnicodeScalars distance: Int) -> AttributedString.Index

Parameters

  • i:

    The index of a position in the string.

  • distance:

    The number of Unicode scalars to advance by.

Return Value

The position of the Unicode scalar offset distance Unicode scalars from position i.

See Also

Accessing Indices