An enum schema for a filter 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 `photos` domain
and a parameter type matches the `filterType` schema,
you can generate the protocol conformance the schema requires
for your app enum implementation
with the `@AppEnum( .photos.filterType)` 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 `filterType` schema:
```swift
@AppEnum(schema: .photos.filterType)
enum PhotoFilterEffectType: String {
case <#PhotoFilterEffectType 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 18.0+
rotationDirection
Swift declaration
var rotationDirection: some AppSchemaEnum { get }
An enum schema for a rotation direction 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 `photos` domain
and a parameter type matches the `rotationDirection` schema,
you can generate the protocol conformance the schema requires
for your app enum implementation
with the `@AppEnum( .photos.rotationDirection)` 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 `rotationDirection` schema:
```swift
@AppEnum(schema: .photos.rotationDirection)
enum PhotoRotationDirection: String {
case <#PhotoRotationDirection 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 18.0+
albumType
Swift declaration
var albumType: some AppSchemaEnum { get }
An enum schema for an album 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 `photos` domain
and a parameter type matches the `albumType` schema,
you can generate the protocol conformance the schema requires
for your app enum implementation
with the `@AppEnum( .photos.albumType)` 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 `albumType` schema:
```swift
@AppEnum(schema: .photos.albumType)
enum PhotoAlbumType: String {
case <#PhotoAlbumType 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 18.0+
assetType
Swift declaration
var assetType: some AppSchemaEnum { get }
An enum schema for an asset 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 `photos` domain
and a parameter type matches the `assetType` schema,
you can generate the protocol conformance the schema requires
for your app enum implementation
with the `@AppEnum( .photos.assetType)` 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 `assetType` schema:
```swift
@AppEnum(schema: .photos.assetType)
enum PhotoAssetType: String {
case <#PhotoAssetType 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>.