One Logo Pool Ball
AppIntentsTypeSupport · IOS API REFERENCE

IntentValueConvertibleWrapper

protocol · iOS 27.0+ · SDK 27.1

protocol IntentValueConvertibleWrapper : IntentValueConvertible

A protocol for types that wrap another intent value that supports conversion. `IntentValueConvertibleWrapper` enables you to create specialized types that derive their `IntentValueConvertible` conformance from an underlying base type. This pattern allows you to extend existing convertible types with additional functionality while preserving their ability to work within the AppIntents framework. Use this protocol when you want to create a type that: - Wraps an existing `IntentValueConvertible` type - Adds domain-specific properties or methods - Maintains compatibility with the AppIntents framework ## Example ```swift struct LandmarkEntity: IntentValueConvertibleWrapper { var baseValue: AnyAppEntity init(baseValue: AnyAppEntity) { self.baseValue = baseValue } var continent: String { get throws { try baseValue.continent } } } ```

Members (1)

method · iOS 27.0+

makeContainer

Swift declaration
func makeContainer(context: IntentValueContainer.ConversionContext) -> IntentValueContainer

Creates an intent value container that represents this wrapper. This implementation delegates to the base value's container creation method, ensuring that the wrapper behaves consistently with its underlying type. - Parameter context: The context to use for the conversion. - Returns: An intent value container representing this wrapper.

Skipped declarations

No declarations were skipped in this snapshot.

All AppIntentsTypeSupport types →