distance(to:)

iOS
15+
macOS
12+
tvOS
15+
watchOS
8+
func distance(to other: AttributedString.Runs.Index) -> Int