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)
}
}