I have created a widget and added a button in its body like this: Button("Tap me: ", intent: TaskIntent())
.
If I compile the TaskIntent in both the app and the widget, when tapping the button, it open the app and that's all, 'perform' is not called at all.
If I compile the TaskIntent only in the widget, when tapping the button, it does nothing, 'perform' is not called either.
Is there any special sauce needed to run the 'perform' of the AppIntent attach to the button?