<!--
{
  "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/topic",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "ClassKit"
    ],
    "preciseIdentifier" : "c:objc(cs)CLSContext(py)topic"
  },
  "title" : "topic"
}
-->

# topic

The area of study to which a context relates.

```
var topic: CLSContextTopic? { get set }
```

## Discussion

Set the topic to tell teachers what kind of content a given context covers using one of the values from [`CLSContextTopic`](/documentation/ClassKit/CLSContextTopic). The topic set on a context applies to that context and any of its descendants for which you haven’t explicitly set a topic. If your entire app covers only a single topic, you only need to set the topic for the [`mainAppContext`](/documentation/ClassKit/CLSDataStore/mainAppContext).

---

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)