---
title: "index(afterUnicodeScalar:)"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/attributedstringprotocol/index(afterunicodescalar:)"
---

# index(afterUnicodeScalar:)

Returns the position of the Unicode scalar immediately after a Unicode scalar indicated by an index.

## Declaration

```swift
func index(afterUnicodeScalar i: AttributedString.Index) -> AttributedString.Index
```

## Parameters

- `i`: The index of a Unicode scalar in the attributed string.

## Return Value

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

## See Also

### Accessing Indices

- [startIndex](foundation/attributedstringprotocol/startindex.md)
- [endIndex](foundation/attributedstringprotocol/endindex.md)
- [index(_:offsetByCharacters:)](foundation/attributedstringprotocol/index(_:offsetbycharacters:).md)
- [index(_:offsetByRuns:)](foundation/attributedstringprotocol/index(_:offsetbyruns:).md)
- [index(_:offsetByUnicodeScalars:)](foundation/attributedstringprotocol/index(_:offsetbyunicodescalars:).md)
- [index(afterCharacter:)](foundation/attributedstringprotocol/index(aftercharacter:).md)
- [index(afterRun:)](foundation/attributedstringprotocol/index(afterrun:).md)
- [index(beforeCharacter:)](foundation/attributedstringprotocol/index(beforecharacter:).md)
- [index(beforeRun:)](foundation/attributedstringprotocol/index(beforerun:).md)
- [index(beforeUnicodeScalar:)](foundation/attributedstringprotocol/index(beforeunicodescalar:).md)
- [AttributedString.Index](foundation/attributedstring/index.md)
