I have taken a simple view in my app and made a widget from it; however, the background gradient color I use does not fill the entire widget, it leaves a white band at the top and bottom.
I assume these bands relate to the safe area for the widget. How can I expand to fill the entire widget? Thanks
Code Block struct MeetingStatsWidgetEntryView : View { var entry: Provider.Entry var body: some View { HStack { VStack { Text("Wasted Time") .fontWeight(.bold) LifetimeTotalsView() } } .foregroundColor(.black) .background(LinearGradient(gradient: Gradient(colors: [ .red,.orange,.yellow,.green, .blue, .purple]), startPoint: .top, endPoint: .bottom)) } }
I assume these bands relate to the safe area for the widget. How can I expand to fill the entire widget? Thanks