---
title: "init(resource:)"
framework: realitykit
role: symbol
role_heading: Initializer
path: "realitykit/ikcomponent/init(resource:)"
---

# init(resource:)

Creates a new component value referencing the specified resource.

## Declaration

```swift
init(resource: IKResource?)
```

## Parameters

- `resource`: The resource with the desired IK rig for the new solver.
