<!--
{
  "availability" : [
    "iOS: 9.0.0 -",
    "iPadOS: 9.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.11.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "GameplayKit",
  "identifier" : "/documentation/GameplayKit/GKComponentSystem/componentClass",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "GameplayKit"
    ],
    "preciseIdentifier" : "c:objc(cs)GKComponentSystem(py)componentClass"
  },
  "title" : "componentClass"
}
-->

# componentClass

The class of components managed by the component system.

```
var componentClass: AnyClass { get }
```

## Discussion

Each [`GKComponentSystem`](/documentation/GameplayKit/GKComponentSystem) object manages components of a specific [`GKComponent`](/documentation/GameplayKit/GKComponent) subclass. You specify the component class to be used by a system when creating it with the [`init(componentClass:)`](/documentation/GameplayKit/GKComponentSystem/init(componentClass:)) initializer. Afterward, you may add components to the system only if their type matches the system’s component class.

---

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)