Instance MethodFoundationEssentials
index(afterRun:)
iOS 15.0+
iPadOS 15.0+
Mac Catalyst 15.0+
macOS 12.0+
tvOS 15.0+
watchOS 8.0+
Returns the position of the run immediately after a run indicated by an index.
func index(afterRun i: AttributedString.Index) -> AttributedString.Index
Parameters
iThe index of a run in the attributed string.
Return Value
The position of first run immediately after the end of i-th run.