Widget Family/Widget Size

How can I change the view for different widget families/widget sizes?
struct My_WidgetEntryView : View {

var entry: Provider.Entry

var body: some View {

Text("Hello World!

}.padding()
.containerBackground(.black, for: .widget)
}
}
}
struct My_WidgetEntryView : View {

var entry: Provider.Entry

var body: some View {

Text("Hello World!

}.padding()
.containerBackground(.black, for: .widget)
}
}
}
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server