One Logo Pool Ball
AppIntents · IOS API REFERENCE

AppSchema.BooksEnum

protocol · iOS 18.0+ · SDK 27.1

protocol BooksEnum : AppSchema.Kind

Identifies enum schemas in the books domain.

Members (10)

get · iOS 18.0+

contentType

Swift declaration
var contentType: some AppSchemaEnum { get }

An enum schema for a content 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 `books` domain and a parameter type matches the `contentType` schema, you can generate the protocol conformance the schema requires for your app enum implementation with the `@AppEnum( .books.contentType)` 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 `contentType` schema: ```swift @AppEnum(schema: .books.contentType) enum BookContentType: String { case <#BookContentType Case#> static let caseDisplayRepresentations: [Self: DisplayRepresentation] = [ <#DisplayRepresentations#> ] } ``` The schema supports the following system experiences: - 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+

relativeFontChange

Swift declaration
var relativeFontChange: some AppSchemaEnum { get }

An enum schema for a relative font change 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 `books` domain and a parameter type matches the `relativeFontChange` schema, you can generate the protocol conformance the schema requires for your app enum implementation with the `@AppEnum( .books.relativeFontChange)` 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 `relativeFontChange` schema: ```swift @AppEnum(schema: .books.relativeFontChange) enum BookRelativeFontChange: String { case <#BookRelativeFontChange Case#> static let caseDisplayRepresentations: [Self: DisplayRepresentation] = [ <#DisplayRepresentations#> ] } ``` The schema supports the following system experiences: - 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+

navigationDirection

Swift declaration
var navigationDirection: some AppSchemaEnum { get }

An enum schema for a navigation 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 `books` domain and a parameter type matches the `navigationDirection` schema, you can generate the protocol conformance the schema requires for your app enum implementation with the `@AppEnum( .books.navigationDirection)` 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 `navigationDirection` schema: ```swift @AppEnum(schema: .books.navigationDirection) enum BookNavigationDirection: String { case <#BookNavigationDirection Case#> static let caseDisplayRepresentations: [Self: DisplayRepresentation] = [ <#DisplayRepresentations#> ] } ``` The schema supports the following system experiences: - 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+

pageNavigationSetting

Swift declaration
var pageNavigationSetting: some AppSchemaEnum { get }

An enum schema for a page navigation setting 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 `books` domain and a parameter type matches the `pageNavigationSetting` schema, you can generate the protocol conformance the schema requires for your app enum implementation with the `@AppEnum( .books.pageNavigationSetting)` 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 `pageNavigationSetting` schema: ```swift @AppEnum(schema: .books.pageNavigationSetting) enum BookPageNavigationSetting: String { case <#BookPageNavigationSetting Case#> static let caseDisplayRepresentations: [Self: DisplayRepresentation] = [ <#DisplayRepresentations#> ] } ``` The schema supports the following system experiences: - 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+

relativeLineSpacingChange

Swift declaration
var relativeLineSpacingChange: some AppSchemaEnum { get }

An enum schema for a relative line spacing change 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 `books` domain and a parameter type matches the `relativeLineSpacingChange` schema, you can generate the protocol conformance the schema requires for your app enum implementation with the `@AppEnum( .books.relativeLineSpacingChange)` 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 `relativeLineSpacingChange` schema: ```swift @AppEnum(schema: .books.relativeLineSpacingChange) enum BookRelativeLineSpacingChange: String { case <#BookRelativeLineSpacingChange Case#> static let caseDisplayRepresentations: [Self: DisplayRepresentation] = [ <#DisplayRepresentations#> ] } ``` The schema supports the following system experiences: - 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+

relativeWordSpacingChange

Swift declaration
var relativeWordSpacingChange: some AppSchemaEnum { get }

An enum schema for a relative word spacing change 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 `books` domain and a parameter type matches the `relativeWordSpacingChange` schema, you can generate the protocol conformance the schema requires for your app enum implementation with the `@AppEnum( .books.relativeWordSpacingChange)` 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 `relativeWordSpacingChange` schema: ```swift @AppEnum(schema: .books.relativeWordSpacingChange) enum BookRelativeWordSpacingChange: String { case <#BookRelativeWordSpacingChange Case#> static let caseDisplayRepresentations: [Self: DisplayRepresentation] = [ <#DisplayRepresentations#> ] } ``` The schema supports the following system experiences: - 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+

relativeCharacterSpacingChange

Swift declaration
var relativeCharacterSpacingChange: some AppSchemaEnum { get }

An enum schema for a relative character spacing change 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 `books` domain and a parameter type matches the `relativeCharacterSpacingChange` schema, you can generate the protocol conformance the schema requires for your app enum implementation with the `@AppEnum( .books.relativeCharacterSpacingChange)` 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 `relativeCharacterSpacingChange` schema: ```swift @AppEnum(schema: .books.relativeCharacterSpacingChange) enum BookRelativeCharacterSpacingChange: String { case <#BookRelativeCharacterSpacingChange Case#> static let caseDisplayRepresentations: [Self: DisplayRepresentation] = [ <#DisplayRepresentations#> ] } ``` The schema supports the following system experiences: - 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+

font

Swift declaration
var font: some AppSchemaEnum { get }

An enum schema for a font 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 `books` domain and a parameter type matches the `font` schema, you can generate the protocol conformance the schema requires for your app enum implementation with the `@AppEnum( .books.font)` 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 `font` schema: ```swift @AppEnum(schema: .books.font) enum BookFont: String { case <#BookFont Case#> static let caseDisplayRepresentations: [Self: DisplayRepresentation] = [ <#DisplayRepresentations#> ] } ``` The schema supports the following system experiences: - 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+

theme

Swift declaration
var theme: some AppSchemaEnum { get }

An enum schema for a theme 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 `books` domain and a parameter type matches the `theme` schema, you can generate the protocol conformance the schema requires for your app enum implementation with the `@AppEnum( .books.theme)` 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 `theme` schema: ```swift @AppEnum(schema: .books.theme) enum BookTheme: String { case <#BookTheme Case#> static let caseDisplayRepresentations: [Self: DisplayRepresentation] = [ <#DisplayRepresentations#> ] } ``` The schema supports the following system experiences: - 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+

fontSize

Swift declaration
var fontSize: some AppSchemaEnum { get }

An enum schema for a font size 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 `books` domain and a parameter type matches the `fontSize` schema, you can generate the protocol conformance the schema requires for your app enum implementation with the `@AppEnum( .books.fontSize)` 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 `fontSize` schema: ```swift @AppEnum(schema: .books.fontSize) enum BookFontSize: String { case <#BookFontSize Case#> static let caseDisplayRepresentations: [Self: DisplayRepresentation] = [ <#DisplayRepresentations#> ] } ``` The schema supports the following system experiences: - 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>.

Skipped declarations

No declarations were skipped in this snapshot.

All AppIntents types →