'Perform' is never called from iOS17 Widget

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?

Post not yet marked as solved Up vote post of myintruder Down vote post of myintruder
538 views

Replies

Hi, use device, not simulator