---
title: registerComponent()
framework: realitykit
role: symbol
role_heading: Type Method
path: realitykit/component/registercomponent()
---

# registerComponent()

Registers a new component type.

## Declaration

```swift
static func registerComponent()
```

## Discussion

Discussion Call the registerComponent() method once for every custom component type that you use in your app before you use it. You don’t need to call the method for built-in component types, like ModelComponent or AnchoringComponent.
