<!--
{
  "availability" : [
    "iOS: 2.0.0 -",
    "iPadOS: 2.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.0.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/NSString/rangeOfComposedCharacterSequence(at:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:objc(cs)NSString(im)rangeOfComposedCharacterSequenceAtIndex:"
  },
  "title" : "rangeOfComposedCharacterSequence(at:)"
}
-->

# rangeOfComposedCharacterSequence(at:)

Returns the range in the receiver of the composed character sequence located at a given index.

```
func rangeOfComposedCharacterSequence(at index: Int) -> NSRange
```

## Parameters

`index`

The index of a character in the receiver. The value must not exceed the bounds of the receiver.

## Return Value

The range in the receiver of the composed character sequence located at `anIndex`.

## Discussion

The composed character sequence includes the first decomposed base letter found at or before `anIndex`, and its length includes the decomposed base letter and all combining characters that follow.

---

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)