Mango Snippets » #11

AppIntents: How to Set a Background Color for Your App Shortcuts

In WWDC22's Design App Shortcuts session, Lynn mentions:

And one last thing -- pick a color for your shortcuts in the Shortcuts app. We have a bunch of great colors for you to choose from, and all your shortcuts will use this color in the app. So pick one that complements your app icon nicely and don't just stick with the default.

To do that, you will override the shortcutTileColor in your AppShortcutsProvider like this:

struct MangoBabyAppShortcuts: AppShortcutsProvider {

      static var shortcutTileColor: ShortcutTileColor = .red

      static var appShortcuts: [AppShortcut] = []