Contents

openPage

The app intent conforms to the schema for opening a page in a text document.

Declaration

var openPage: some AssistantSchemas.Intent { get }

Overview

Use Swift macros that generate additional properties and add protocol conformance for your app intent implementation. The following example shows an app intent that conforms to the .wordProcessor.openPage schema:

@AppIntent(schema: .wordProcessor.openPage)
struct OpenWordProcessorPageIntent: OpenIntent {
    @Parameter
    var target: WordProcessorPageEntity

    func perform() async throws -> some IntentResult {
        .result()
    }
}

See Also

Actions