As previously discussed, widgets can be displayed in small, medium and large sizes. The widget declares which sizes it supports by applying the supportedFamilies() modifier to the widget configuration as follows:
@main
struct SimpleWidget: Widget {
private let kind: String = "SimpleWidget"
public var body: some WidgetConfiguration {
IntentConfiguration(kind: kind,
intent: LocationSelectionIntent.self, provider: Provider(),
placeholder: PlaceholderView()) { entry in
SimpleWidgetEntryView(entry: entry)
}
...