Yannick Lung @yanlu.chat · Sep 11

Quick question: how can I create Shortcut groups like these? What are those called? #SwiftUI

1 likes 2 replies

?

Replies

Florian · Sep 12

Those are parametrized shortcuts in the AppShortcutsProvider. Here is an example from one of my apps. The first group contains all non-parametrized shortcuts. The second group is the one from the code snippet.

Bill Dunay · Sep 12

Create a new strict that implements the AppShortcutsProvider protocol and add the app intents you want to group inside of that. There’s an example in the Apple docs for that protocol I believe.