var body: some View { let dailyRows = entry.rows let commonFontSize = 20.0 return Link(destination: URL(string: "widget://code?id=\(entry.code.id)")!) { ZStack { GeometryReader { geo in VStack { Text("header")//entry.combinedForecast.location.name) .frame(height: geo.size.height * 0.2) .padding(2) .font(.system(size: 24)) .lineLimit(1) .minimumScaleFactor(0.05) .frame(height: geo.size.height * 0.15, alignment: .center) .border(.green) ForEach(dailyRows, id: \.start) { summary in VStack(spacing: 0) { HStack { Text("left") Spacer() Text("middle") Spacer() Text("right") } } .padding(0) .border(.purple) if summary != dailyRows.last { Rectangle() .frame(height: 1) .foregroundColor(.gray) } } } } } } .border(.red) .padding(0) .containerRelativeFrame([.horizontal, .vertical],alignment: .topLeading) .containerBackground(for: .widget){ Color("WidgetBackground") } }