One Logo Pool Ball
AppIntents · IOS API REFERENCE

AppUnionValue

protocol · iOS 27.0+ · SDK 27.1

protocol AppUnionValue : TypeDisplayRepresentable

A protocol that provides nominal type identity and metadata for union values. Union values conforming to this protocol can be used as Shortcuts parameters with rich metadata support, enabling appropriate picker UI and parameter summaries. The `@UnionValue` macro automatically generates conformance to this protocol. You can provide custom metadata by implementing the protocol requirements in an extension. Example: ```swift @UnionValue enum Reaction { case tapback(Tapback) case text(String) } extension Reaction { static var typeDisplayRepresentation: TypeDisplayRepresentation { "Reaction" } static let caseDisplayRepresentations: [Cases: DisplayRepresentation] = [ .tapback: "Tapback", .text: "Text Reaction" ] } ```

Members (0)

This type has no directly callable members in this snapshot. See the framework’s skipped declarations for unsupported APIs.

Skipped declarations

2 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

AppUnionValue.typeDisplayRepresentation

Static protocol requirements cannot be called through an instance.

AppUnionValue.caseDisplayRepresentations

Static protocol requirements cannot be called through an instance.

All AppIntents types →