---
title: "init(allowedInputTypes:)"
framework: realitykit
role: symbol
role_heading: Initializer
path: "realitykit/inputtargetcomponent/init(allowedinputtypes:)"
---

# init(allowedInputTypes:)

Creates a new instance of an InputTargetComponent with a set of allowedInputTypes that define what kinds of input the component’s entity can receive.

## Declaration

```swift
init(allowedInputTypes: InputTargetComponent.InputType = .all)
```
