<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: -",
    "macOS: 27.0.0 -",
    "tvOS: 27.0.0 -",
    "visionOS: 27.0.0 -",
    "watchOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppIntents",
  "identifier" : "/documentation/AppIntents/IntentValueConvertible/makeContainer(context:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "App Intents"
    ],
    "preciseIdentifier" : "s:21AppIntentsTypeSupport22IntentValueConvertibleP13makeContainer7contextAA0efI0VAG17ConversionContextV_tF"
  },
  "title" : "makeContainer(context:)"
}
-->

# makeContainer(context:)

Creates an intent value container that represents this value.

```
func makeContainer(context: IntentValueContainer.ConversionContext) -> IntentValueContainer
```

## Parameters

`context`

The context to use for the conversion.

## Return Value

An intent value container representing this value.

## Discussion

This method converts the value to a type-erased container that App Intents can use.
The container encapsulates the value and provides
mechanisms for type-safe access and conversion.

---

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)