<!--
{
  "availability" : [
    "iOS: 11.3.0 -",
    "iPadOS: 11.3.0 -",
    "macCatalyst: 11.3.0 -",
    "macOS: 11.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ClassKit",
  "identifier" : "/documentation/ClassKit/CLSContext/identifier",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "ClassKit"
    ],
    "preciseIdentifier" : "c:objc(cs)CLSContext(py)identifier"
  },
  "title" : "identifier"
}
-->

# identifier

A string that uniquely identifies a context among its siblings.

```
var identifier: String { get }
```

## Discussion

All contexts with a given parent context must have different identifiers. No such requirement exists for contexts that have different parent contexts. So, for example, the `chapter-1` and `chapter-2` contexts can each have child contexts with the identifier `section-1`, but `chapter-1` can’t have two contexts with that identifier.

---

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)