Hey! I have same problem are you have solution after 4 year? :)
Post
Replies
Boosts
Views
Activity
Yes you can show different anything on all widget sizes. Like this:
struct WidgetEntryView : View {
var entry: Provider.Entry
@Environment(\.widgetFamily) var family
var body: some View {
switch family {
case .systemSmall:
SmallWidget(entry: entry)
default:
MediumWidget(entry: entry)
}
}
}
struct SmallWidget: View {
var entry: Provider.Entry
var body: some View {
...
}
}
struct MediumWidget: View {
var entry: Provider.Entry
var body: some View {
...
}
}