---
title: "init(id:weights:)"
framework: realitykit
role: symbol
role_heading: Initializer
path: "realitykit/blendshapeweightsdata/init(id:weights:)"
---

# init(id:weights:)

Creates an instance of the named weights for a single blend shape.

## Declaration

```swift
init(id: BlendShapeWeightsData.ID, weights: [(String, BlendShapeWeights.Element)])
```

## Parameters

- `id`: The unique name of the blend shape.
- `weights`: An array of name value pairs for the weights in predefined order.
