Contents

App Shortcuts

Improve the experience of using your app intents and entities in system experiences like Siri, Spotlight, and the Shortcuts app.

Overview

App Shortcuts provide a polished experience for your app intents and entities in the Shortcuts app and other system experiences. An App Shortcut combines the action from your app intent with other data, such as a title, image, and spoken phrases that someone might use to run the shortcut. A shortcut can also contain preconfigured parameters, so someone can run the action quickly, and without having to specify additional information. For example, a hiking app might offer an app intent to start a hike, but require you to select a trail before starting the action. Without a shortcut, someone must provide the trail information each time they run the intent. However, a shortcut can simplify this flow by offering to start a hike on the person’s favorite trail.

You create App Shortcuts programmatically in your code, and the compiler generates the information the rest of the system needs to use it. This approach means that the shortcuts you create are available as soon as someone installs your app, and you don’t have to register them yourself. Specify your shortcuts in your code by defining a custom type that adopts the AppShortcutsProvider protocol. Include this type in your app, app extension, Swift package, or library that you use to manage your intents-related code. Inside this type, construct one or more AppShortcut types using static data. Define your shortcuts in the same place you define the app intents that those shortcuts use.

Although the Shortcuts app and other system features find your shortcuts automatically, you can also make them available from your app using tip views. The SiriTipView and SiriTipUIView types display the relevant shortcuts for the app intent you specify. You can also use a ShortcutsLink or ShortcutsUIButton to open your app’s page in the Shortcuts app.

Topics

App Shortcut management

App Shortcut definition

App Shortcut options

App Shortcut parameter presentation

Buttons

Tip views

See Also

Feature integration