Преглед изворни кода

Draw override plot behind glucose plots to avoid color shift

Deniz Cengiz пре 1 година
родитељ
комит
8216059418
1 измењених фајлова са 7 додато и 7 уклоњено
  1. 7 7
      FreeAPS/Sources/Modules/Home/View/Chart/MainChartView.swift

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

@@ -137,6 +137,13 @@ extension MainChartView {
                 drawCurrentTimeMarker()
                 drawTempTargets()
 
+                OverrideView(
+                    overrides: state.overrides,
+                    overrideRunStored: state.overrideRunStored,
+                    units: state.units,
+                    viewContext: context
+                )
+
                 GlucoseChartView(
                     glucoseData: state.glucoseFromPersistence,
                     units: state.units,
@@ -161,13 +168,6 @@ extension MainChartView {
                     minValue: state.minYAxisValue
                 )
 
-                OverrideView(
-                    overrides: state.overrides,
-                    overrideRunStored: state.overrideRunStored,
-                    units: state.units,
-                    viewContext: context
-                )
-
                 ForecastView(
                     preprocessedData: state.preprocessedData,
                     minForecast: state.minForecast,