One Logo Pool Ball
AppIntents · IOS API REFERENCE

AssistantSchemas.ReaderEnum

protocol · iOS 16.0+ · SDK 27.1

protocol ReaderEnum : AssistantSchemas.Model

Assistant schema conformance for types you use to describe documents.

Members (1)

get · iOS 16.0+

documentKind

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

The file type for a document. ## 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 `.reader.documentKind` schema: ```swift @AppEnum(schema: .reader.documentKind) enum ReaderDocumentKind: AppEnum, Codable { case image case pdf static var caseDisplayRepresentations: [Self: DisplayRepresentation] { [ .image: .init(title: "Image", image: .init(systemName: "photo")), .pdf: .init(title: "PDF", image: .init(systemName: "doc.text")), ] } } ``` For more information about the `.reader` app intent domain, see <doc:app-schema-domain-reader>. 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 →