Fizzy
Fizzy
TSDThe Swift Den
Created by Fizzy on 1/20/2024 in #swift-development
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)
}
}
}
2 replies