When doing this video, my Xcode generated an IntentConfiguration structure for the widget. I got an error that someone else reported about an missing intent. I then changed my code to be based on a StaticConfiguration. That worked similar to the video, but what is the difference between the two? When would I use one over the other?
IntentConfiguration is used for widgets that want to provide user configurable options. For example, Stocks would provide the user to choose which stocks to show in the widget.
But some widgets don't need this, like the Activity widget, therefore it uses the StaticConfiguration.
Here's more information on making a configurable widget: https://developer.apple.com/documentation/widgetkit/making-a-configurable-widget
But some widgets don't need this, like the Activity widget, therefore it uses the StaticConfiguration.
Here's more information on making a configurable widget: https://developer.apple.com/documentation/widgetkit/making-a-configurable-widget