search
Declaration
var search: some AssistantSchemas.Intent { get }Mentioned in
Overview
To integrate your app’s functionality with Siri and Apple Intelligence, you use Swift macros that generate additional properties and add protocol conformance for your app intent implementation.
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 system.search schema:
@AppIntent(schema: .system.search)
struct ShowInAppSearchResultsIntent: ShowInAppSearchResultsIntent {
static var searchScopes: [StringSearchScope] = [.general]var criteria: String
func perform() async throws -> some IntentResult {
<#code#>
}
}