addImageToPage
The app intent conforms to the schema for adding an image to a page in a text document.
Declaration
var addImageToPage: 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.addImageToPage schema:
@AppIntent(schema: .wordProcessor.addImageToPage)
struct AddImageToWordProcessorPageIntent: AppIntent {
@Parameter
var target: WordProcessorPageEntity
@Parameter(supportedContentTypes: [.image])
var image: IntentFile
func perform() async throws -> some IntentResult {
.result()
}
}