semanticContentSearch
The app intent conforms to the schema for visual search functionality.
Declaration
var semanticContentSearch: some AssistantSchemas.Intent { get }Overview
To integrate your app’s functionality with Visual Intelligence you use Swift macros that generate additional properties and add protocol conformance for your app intent implementation.
For more information about the .visualIntelligence app intent domain, see Making in-app search actions available to Siri and Apple Intelligence. For general information about app intent domains, see Integrating actions with Siri and Apple Intelligence.
The following example shows an app intent that conforms to the .visualIntelligence.semanticContentSearch schema:
@AppIntent(schema: .visualIntelligence.semanticContentSearch)
struct SemanticContentSearchIntent: AppIntent {
@Parameter var semanticContent: SemanticContentDescriptor
func perform() async throws -> some IntentResult {
return .result()
}
}