---
title: "insert(_:for:)"
framework: coreai
role: symbol
role_heading: Instance Method
path: "coreai/inferencefunction/asyncmutableviews/insert(_:for:)"
---

# insert(_:for:)

Insert the view to be used as the async mutable value for name.

## Declaration

```swift
mutating func insert(_ mutableValue: inout InferenceFunction.AsyncMutableValue, for name: String)
```

## Parameters

- `mutableValue`: The mutable value that this collection will reference. Its lifetime is tied to the resulting collection.
- `name`: The name of the state or output view being specified.
