Post

Replies

Boosts

Views

Activity

Reply to Can widgets play in turn?
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 {     ...   } }
Aug ’22