<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macCatalyst: 18.0.0 -",
    "macOS: 15.0.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/BlendShapeWeightsData/init(id:weights:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation21BlendShapeWeightsDataV2id7weightsACSS_SaySS_SftGtcfc"
  },
  "title" : "init(id:weights:)"
}
-->

# init(id:weights:)

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

```
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.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)