---
title: "set(_:)"
framework: realitykit
role: symbol
role_heading: Instance Method
path: "realitykit/skeletalposeset/set(_:)"
---

# set(_:)

Updates a pose in the set based on its name. If pose with this ID does not exist, does nothing.

## Declaration

```swift
@discardableResult mutating func set(_ newValue: SkeletalPoseSet.Element) -> SkeletalPoseSet.Element?
```

## Parameters

- `newValue`: The pose to store.

## Return Value

Return Value The previous pose value, if named pose exists
