---
title: "makeContainer(context:)"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/attributedstring/makecontainer(context:)"
---

# makeContainer(context:)

Creates a container that represents the attributed string.

## Declaration

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

## Parameters

- `context`: The context to use for the conversion.

## Return Value

Return Value An intent value container representing this attributed string.

## Discussion

Discussion This method converts the AttributedString to an NSAttributedString and wraps it in an intent value container.
