<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 12.0.0 -",
    "tvOS: 15.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 8.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/AttributedStringProtocol/index(afterUnicodeScalar:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "s:10Foundation24AttributedStringProtocolPAAE5index18afterUnicodeScalarAA0bC0V5IndexVAI_tF"
  },
  "title" : "index(afterUnicodeScalar:)"
}
-->

# index(afterUnicodeScalar:)

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`.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)