A snippet intent that renders an empty view.
You don't create this type directly. AppIntent uses the default value for
functions that expect a `SnippetIntent`.
Members (6)
get · iOS 26.0+
isDiscoverable
TypeScript
static get isDiscoverable(): boolean
Swift declaration
static var isDiscoverable: Bool
A Boolean value that indicates whether system features can discover this app intent.
When the value of this property is `true`, system features like Siri, Spotlight,
and the Shortcuts app can discover and use the app intent. When the value of the
property is `false`, you can run the intent from your app’s interface or from a
widget, but system features can’t access it. The default value of this property is `true`.
> Note: App Shortcuts require this property to be `true` for the app intents they use.
set · iOS 26.0+
isDiscoverable
TypeScript
static set isDiscoverable(value: boolean)
Swift declaration
static var isDiscoverable: Bool
A Boolean value that indicates whether system features can discover this app intent.
When the value of this property is `true`, system features like Siri, Spotlight,
and the Shortcuts app can discover and use the app intent. When the value of the
property is `false`, you can run the intent from your app’s interface or from a
widget, but system features can’t access it. The default value of this property is `true`.
> Note: App Shortcuts require this property to be `true` for the app intents they use.
get · iOS 26.0+
title
TypeScript
static get title(): _Foundation_LocalizedStringResource
Swift declaration
static var title: LocalizedStringResource
A short, localized, human-readable string that conveys the app intent’s action.
Specify title strings using a verb followed by a noun in title case. For example,
an action to open an album might have the title “Open Album”. If the app intent
conforms to a schema, the schema provides this value.
set · iOS 26.0+
title
TypeScript
static set title(value: _Foundation_LocalizedStringResource)
Swift declaration
static var title: LocalizedStringResource
A short, localized, human-readable string that conveys the app intent’s action.
Specify title strings using a verb followed by a noun in title case. For example,
an action to open an album might have the title “Open Album”. If the app intent
conforms to a schema, the schema provides this value.
method · iOS 26.0+
perform
TypeScript
perform(): Promise<SDKHandle>
Swift declaration
func perform() async throws -> some ShowsSnippetView
Performs the intent’s action and returns a result, after resolving any parameters.
Implement this method in your custom type to perform the action in your app. Return
a result or throw error to indicate the success or failure of the action.
Before calling this method, the system resolves your app intent's parameters to known
values. Use your implementation to perform the action using the provided information
and deliver a result back to the system. At any point in your implementation, you can also
use methods of the ``AppIntent`` protocol to request confirmation or ask someone to choose
from a set of options you provide.
For information about how to implement this method, see <doc:Creating-your-first-app-intent>.
- Returns: The result of the action. You can use the result to tell the system to
perform additional actions. For example, include an ``OpensAppIntent`` type if you
want the system to open your app and perform another action. You can also provide
the system with dialog and snippet content along with the result.