How do I design my shortcut intents?

Generated on 8/1/2024

1 search

To design your shortcut intents effectively, you can follow the guidance provided in the WWDC sessions. Here are the key steps and considerations:

  1. Identify Functionality to Surface:

    • Start by identifying the most habitual tasks in your app that could be useful outside of your app. This includes tasks that users frequently perform and would benefit from quick access.
    • With iOS 18, the guidance has expanded to include more than just common functionality. Now, anything your app does can be an app intent. However, prioritize the most common and habitual functionalities first (Design App Intents for system experiences).
  2. Structure Your App Intents:

    • An app intent consists of a summary of what it does, which starts with the app followed by a verb, and includes the parameters that people need to fill out before the intent is run (Design App Intents for system experiences).
    • Ensure that the parameter summary is always readable as a sentence, regardless of the selected parameters. This helps users understand what the app intent does when exploring in the shortcuts drawer (Design App Intents for system experiences).
  3. Use Parameters Effectively:

    • If your intent needs input, such as picking a number or entering text, choose from the library of parameter types provided by Apple.
    • For intents that open their parameter in the app, use the special protocol open intent, which implies open when run (Bring your app’s core features to users with App Intents).
  4. Design for Flexibility and Readability:

  5. Implementing Intents in Code:

  6. Testing and Refining:

    • Test your app intents thoroughly to ensure they work as expected across different configurations and use cases.
    • Refine the intents based on user feedback and usage patterns to improve their effectiveness and usability.

By following these steps, you can design powerful and flexible shortcut intents that enhance the user experience and make your app's functionality more accessible across the Apple ecosystem. For more detailed guidance, you can refer to the sessions Design App Intents for system experiences and Bring your app’s core features to users with App Intents.