On iOS, using the AppIntents framework, I need a conditional AppShortcutsProvider

We have a Subscription based feature in our App, using which a user can say something like "Ask Mickey". However we want to enable this system Shortcut only when the user has subscribed to certain premium features.

i.e. If the User is not subscribed to Premium Services, we do not want to show this Shortcut.

However, when adding any conditional code inside AppShortcutsProvider, I am getting the following Compile Time errors:

**'AppShortcutsProvider' property 'appShortcuts' requires builder syntax

AppShortcut builders support only a platform availability if statements, not general if statements'**

On iOS, using the AppIntents framework, I need a conditional AppShortcutsProvider
 
 
Q