Explorar el Código

fix basal chart dancing

polscm32 hace 2 años
padre
commit
49b17413b3
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      FreeAPS/Sources/Modules/Home/View/Chart/MainChartView.swift

+ 2 - 2
FreeAPS/Sources/Modules/Home/View/Chart/MainChartView.swift

@@ -334,7 +334,7 @@ extension MainChartView {
             }.onChange(of: basalProfile) { _ in
             }.onChange(of: basalProfile) { _ in
                 calculateTempBasals()
                 calculateTempBasals()
             }
             }
-            .frame(maxHeight: UIScreen.main.bounds.height * 0.05)
+            .frame(maxHeight: UIScreen.main.bounds.height * 0.08)
             .frame(width: fullWidth(viewWidth: screenSize.width))
             .frame(width: fullWidth(viewWidth: screenSize.width))
             .chartXScale(domain: startMarker ... endMarker)
             .chartXScale(domain: startMarker ... endMarker)
             .chartXAxis { basalChartXAxis }
             .chartXAxis { basalChartXAxis }
@@ -609,7 +609,7 @@ extension MainChartView {
     }
     }
 
 
     private func drawTempBasals() -> some ChartContent {
     private func drawTempBasals() -> some ChartContent {
-        ForEach(filteredTempBasals(), id: \.start) { basal in
+        ForEach(filteredTempBasals(), id: \.rate) { basal in
             RectangleMark(
             RectangleMark(
                 xStart: .value("start", basal.start),
                 xStart: .value("start", basal.start),
                 xEnd: .value("end", basal.end),
                 xEnd: .value("end", basal.end),