Code Block GeometryReader { geo in HStack { SmallDailyWater(totalWater: self.totalWater) .frame(width:geo.size.height, height:geo.size.height) VStack(spacing:geo.size.height * 0.05) { QueryWidget(sort: "Des", index: 0) { (item:DailyWaterMO) in VStack (spacing:geo.size.height * 0.01) { Text(NSLocalizedString("Recently", comment: "Recently")) .font(.system(size: geo.size.height * 0.08)) .frame(maxWidth: .infinity, alignment: .leading) Text(String(item.water)) .font(.system(size: geo.size.height * 0.18)) .frame(maxWidth: .infinity, alignment: .leading) } } notfound: { VStack { Text(NSLocalizedString("None Recently", comment: "None Recently")) .font(.system(size: geo.size.height * 0.12)) .frame(maxWidth: .infinity, alignment: .leading) } } Text(NSLocalizedString("DailyWater", comment: "DailyWater")) .font(.system(size: geo.size.height * 0.08)) .frame(maxWidth: .infinity, alignment: .leading) Text(NSLocalizedString("1500~2000ML/Day", comment: "1500~2000ML/Day")) .font(.system(size: geo.size.height * 0.08)) .frame(maxWidth: .infinity, alignment: .leading) } .frame(height:geo.size.height) } }
"Failed to produce a diagnostic for expression; please file a bug report" error.
What do you want to discuss or ask?
If you want to write a bug report, this is not the place. Visit Feedback Assistant.
If you want to ask how to fix, the code shown is not enough. Please show definitions of totalWater, SmallDailyWater, QueryWidget, DailyWaterMO and all other relevant types and properties.
By the way, you have no need to use NSLocalizedString with Text.
You can simply write:
instead of:
If you want to write a bug report, this is not the place. Visit Feedback Assistant.
If you want to ask how to fix, the code shown is not enough. Please show definitions of totalWater, SmallDailyWater, QueryWidget, DailyWaterMO and all other relevant types and properties.
By the way, you have no need to use NSLocalizedString with Text.
You can simply write:
Code Block Text("DailyWater", comment: "DailyWater")
instead of:
Code Block Text(NSLocalizedString("DailyWater", comment: "DailyWater"))