How to add Buttons to a Widget

Hi everyone,

I'm trying to add buttons to a widget having family type ".systemLarge". I want to execute some code without opening the app.

Anyone knows how to do that?

For example the Shortcuts App Widget includes buttons you can tap to execute a shortcut without opening the app.

Best regards
Marcel
As said in a few WWDC2020 widget videos, Widgets are NOT supposed to be interactive, except when a user needs to input information such as a weather app asking for a zip code. No buttons.
I saw all the videos and also recognized this hint. But what about the Shortcuts App? It definitely has buttons, I tested it with the iOS 14 beta.

So my question was more about the technical part. How to do that? The guidelines and the review team will be the second part of the process.
How Coinbase doing that?
How to add Buttons to a Widget
 
 
Q