One Logo Pool Ball
AppIntents · IOS API REFERENCE

AssistantSchemas.PhotosEnum

protocol · iOS 16.0+ · SDK 27.1

protocol PhotosEnum : AssistantSchemas.Model

Assistant schema conformance for types you use to describe photos and videos.

Members (4)

get · iOS 16.0+

filterType

Swift declaration
var filterType: some AssistantSchemas.Enum { get }

The filter effect for a photo or video. ## Overview Use Swift macros that generate additional properties and add protocol conformance for your app enum implementation. The following example shows an app enum that conforms to the `.photos.filterType` schema: ```swift @AppEnum(schema: .photos.filterType) enum PhotoFilterEffectType: AppEnum { case original static var caseDisplayRepresentations: [PhotoFilterEffectType: AppIntents.DisplayRepresentation] = [ .original: "Original", ] } ``` For more information about the `.photos` app intent domain, see <doc:app-schema-domain-photos>. For general information about app intent domains, see <doc:making-actions-and-content-discoverable-by-apple-intelligence>.

get · iOS 16.0+

rotationDirection

Swift declaration
var rotationDirection: some AssistantSchemas.Enum { get }

The direction for rotating a photo or video. ## Overview Use Swift macros that generate additional properties and add protocol conformance for your app enum implementation. The following example shows an app enum that conforms to the `.photos.rotationDirection` schema: ```swift @AppEnum(schema: .photos.rotationDirection) enum PhotoRotationDirection: AppEnum { case clockwise static var caseDisplayRepresentations: [PhotoRotationDirection: AppIntents.DisplayRepresentation] = [ .clockwise: "Clockwise", ] } ``` For more information about the `.photos` app intent domain, see <doc:app-schema-domain-photos>. For general information about app intent domains, see <doc:making-actions-and-content-discoverable-by-apple-intelligence>.

get · iOS 16.0+

albumType

Swift declaration
var albumType: some AssistantSchemas.Enum { get }

The type of photo album. ## Overview Use Swift macros that generate additional properties and add protocol conformance for your app enum implementation. The following example shows an app enum that conforms to the `.photos.albumType` schema: ```swift @AppEnum(schema: .photos.albumType) enum PhotoAlbumType: AppEnum { case custom static var caseDisplayRepresentations: [PhotoAlbumType: AppIntents.DisplayRepresentation] = [ .custom: "Custom", ] } ``` For more information about the `.photos` app intent domain, see <doc:app-schema-domain-photos>. For general information about app intent domains, see <doc:making-actions-and-content-discoverable-by-apple-intelligence>.

get · iOS 16.0+

assetType

Swift declaration
var assetType: some AssistantSchemas.Enum { get }

The type of asset. ## Overview Use Swift macros that generate additional properties and add protocol conformance for your app enum implementation. The following example shows an app enum that conforms to the `.photos.assetType` schema: ```swift @AppEnum(schema: .photos.assetType) enum PhotoAssetType: AppEnum { case photo case video static var caseDisplayRepresentations: [PhotoAssetType: AppIntents.DisplayRepresentation] = [ .photo: "Photo", .video: "Video", ] } ``` For more information about the `.photos` app intent domain, see <doc:app-schema-domain-photos>. For general information about app intent domains, see <doc:making-actions-and-content-discoverable-by-apple-intelligence>.

Skipped declarations

No declarations were skipped in this snapshot.

All AppIntents types →