An enum schema for a message type parameter.
To make your app's parameter types available to Apple Intelligence,
conform your ``AppEnum`` to a schema that describes a parameter's possible values to the system.
If your app's functionality aligns with the `messages` domain
and a parameter type matches the `messageType` schema,
you can generate the protocol conformance the schema requires
for your app enum implementation
with the `@AppEnum( .messages.messageType)` Swift macro.
To make your app work with Siri,
see <doc://com.apple.documentation/documentation/appintents/apple-intelligence-and-siri-ai>.
The following example shows an app enum that conforms to the `messageType` schema:
```swift
@AppEnum(schema: .messages.messageType)
enum MessageType: String {
case unspecified
static let caseDisplayRepresentations: [Self: DisplayRepresentation] = [
.unspecified: "Unspecified"
]
}
```
The schema supports the following system experiences:
- Siri
- Shortcuts
For more information about the App Intents framework and the experiences it supports,
see <doc://com.apple.documentation/documentation/appintents/getting-started-with-the-app-intents-framework>.
get · iOS 27.0+
messageEffect
Swift declaration
var messageEffect: some AppSchemaEnum { get }
An enum schema for a message effect parameter.
To make your app's parameter types available to Apple Intelligence,
conform your ``AppEnum`` to a schema that describes a parameter's possible values to the system.
If your app's functionality aligns with the `messages` domain
and a parameter type matches the `messageEffect` schema,
you can generate the protocol conformance the schema requires
for your app enum implementation
with the `@AppEnum( .messages.messageEffect)` Swift macro.
To make your app work with Siri,
see <doc://com.apple.documentation/documentation/appintents/apple-intelligence-and-siri-ai>.
The following example shows an app enum that conforms to the `messageEffect` schema:
```swift
@AppEnum(schema: .messages.messageEffect)
enum MessageEffect: String {
case <#MessageEffect Case#>
static let caseDisplayRepresentations: [Self: DisplayRepresentation] = [
<#DisplayRepresentations#>
]
}
```
The schema supports the following system experiences:
- Siri
- Shortcuts
For more information about the App Intents framework and the experiences it supports,
see <doc://com.apple.documentation/documentation/appintents/getting-started-with-the-app-intents-framework>.
get · iOS 27.0+
customReaction
Swift declaration
var customReaction: some AppSchemaEnum { get }
An enum schema for a custom reaction parameter.
To make your app's parameter types available to Apple Intelligence,
conform your ``AppEnum`` to a schema that describes a parameter's possible values to the system.
If your app's functionality aligns with the `messages` domain
and a parameter type matches the `customReaction` schema,
you can generate the protocol conformance the schema requires
for your app enum implementation
with the `@AppEnum( .messages.customReaction)` Swift macro.
To make your app work with Siri,
see <doc://com.apple.documentation/documentation/appintents/apple-intelligence-and-siri-ai>.
The following example shows an app enum that conforms to the `customReaction` schema:
```swift
@AppEnum(schema: .messages.customReaction)
enum Tapback: String {
case <#Tapback Case#>
static let caseDisplayRepresentations: [Self: DisplayRepresentation] = [
<#DisplayRepresentations#>
]
}
```
The schema supports the following system experiences:
- Siri
- Shortcuts
For more information about the App Intents framework and the experiences it supports,
see <doc://com.apple.documentation/documentation/appintents/getting-started-with-the-app-intents-framework>.
get · iOS 27.0+
messageAttribute
Swift declaration
var messageAttribute: some AppSchemaEnum { get }
An enum schema for a message attribute parameter.
To make your app's parameter types available to Apple Intelligence,
conform your ``AppEnum`` to a schema that describes a parameter's possible values to the system.
If your app's functionality aligns with the `messages` domain
and a parameter type matches the `messageAttribute` schema,
you can generate the protocol conformance the schema requires
for your app enum implementation
with the `@AppEnum( .messages.messageAttribute)` Swift macro.
To make your app work with Siri,
see <doc://com.apple.documentation/documentation/appintents/apple-intelligence-and-siri-ai>.
The following example shows an app enum that conforms to the `messageAttribute` schema:
```swift
@AppEnum(schema: .messages.messageAttribute)
enum MessageAttribute: String {
case <#MessageAttribute Case#>
static let caseDisplayRepresentations: [Self: DisplayRepresentation] = [
<#DisplayRepresentations#>
]
}
```
The schema supports the following system experiences:
- Siri
- Shortcuts
For more information about the App Intents framework and the experiences it supports,
see <doc://com.apple.documentation/documentation/appintents/getting-started-with-the-app-intents-framework>.
get · iOS 27.0+
conversationAttribute
Swift declaration
var conversationAttribute: some AppSchemaEnum { get }
An enum schema for a conversation attribute parameter.
To make your app's parameter types available to Apple Intelligence,
conform your ``AppEnum`` to a schema that describes a parameter's possible values to the system.
If your app's functionality aligns with the `messages` domain
and a parameter type matches the `conversationAttribute` schema,
you can generate the protocol conformance the schema requires
for your app enum implementation
with the `@AppEnum( .messages.conversationAttribute)` Swift macro.
To make your app work with Siri,
see <doc://com.apple.documentation/documentation/appintents/apple-intelligence-and-siri-ai>.
The following example shows an app enum that conforms to the `conversationAttribute` schema:
```swift
@AppEnum(schema: .messages.conversationAttribute)
enum ConversationAttribute: String {
case <#ConversationAttribute Case#>
static let caseDisplayRepresentations: [Self: DisplayRepresentation] = [
<#DisplayRepresentations#>
]
}
```
The schema supports the following system experiences:
- Siri
- Shortcuts
For more information about the App Intents framework and the experiences it supports,
see <doc://com.apple.documentation/documentation/appintents/getting-started-with-the-app-intents-framework>.