47.3 Widget Configuration Types
When creating a widget, the choice needs to be made as to whether it should be created using the static or intent configuration model. These two options can be summarized as follows:
•Intent Configuration – Used when it makes sense for the user to be able to configure aspects of the widget. For example, allowing the user to select the news publications from which headlines are to be displayed within the widget.
•Static Configuration – Used when the widget does not have any user configurable properties.
When the Intent Configuration option is used, the configuration options to be presented to the user are declared within a SiriKit intent definition file.
The following is an example widget entry containing a static configuration designed to support both small and medium size families:
@main
struct SimpleWidget: Widget {
private let kind: String = "SimpleWidget"
...