Contents

componentClass

The class of components managed by the component system.

Declaration

var componentClass: AnyClass { get }

Discussion

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

See Also

Managing a List of Components