Skip to content

Instance MethodFoundationEssentials

index(afterUnicodeScalar:)

iOS 15.0+ iPadOS 15.0+ Mac Catalyst 15.0+ macOS 12.0+ tvOS 15.0+ watchOS 8.0+
Returns the position of the Unicode scalar immediately after a Unicode scalar indicated by an index.
func index(afterUnicodeScalar i: AttributedString.Index) -> AttributedString.Index

Parameters

i

The index of a Unicode scalar in the attributed string.

Return Value

The position of the Unicode scalar immediately after the Unicode scalar at index i.