Conditionally build AppShortcuts list
I am trying to build a list of AppIntents to use with App Shortcuts, using AppShortcutsProvider
. I built 2-3 shortcuts this way and it works fine, but I want to add an intent that is based on ForegroundContinuableIntent
, which is an iOS16.4 API, so I want to conditionally add that to the shortcuts list, but it doesn’t work.