<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "tvOS: 27.0.0 -",
    "visionOS: 27.0.0 -",
    "watchOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreAI",
  "identifier" : "/documentation/CoreAI/InferenceFunction/AsyncMutableViews",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Core AI",
      "CoreAI"
    ],
    "preciseIdentifier" : "s:13CoreAIRuntime17InferenceFunctionV17AsyncMutableViewsV"
  },
  "title" : "InferenceFunction.AsyncMutableViews"
}
-->

# InferenceFunction.AsyncMutableViews

A collection of mutable references to async states, used as the states argument to an inference function.

```
struct AsyncMutableViews
```

## Topics

### Creating a collection

[`init()`](/documentation/CoreAI/InferenceFunction/AsyncMutableViews/init())

Initialize an empty `AsyncMutableViews`.

### Adding values

[`func insert(inout InferenceFunction.AsyncMutableValue, for: String)`](/documentation/CoreAI/InferenceFunction/AsyncMutableViews/insert(_:for:))

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



---

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)