Переглянути джерело

Address PR feedback; change default color, fix comment

Deniz Cengiz 1 рік тому
батько
коміт
4ff24adeb2

+ 4 - 4
Trio Watch App Extension/Views/GlucoseTrendView.swift

@@ -25,13 +25,13 @@ struct GlucoseTrendView: View {
 
         switch minutes {
         case ...5:
-            return .loopGreen
+            return Color.loopGreen
         case 5 ... 10:
-            return .loopYellow
+            return Color.loopYellow
         case 11...:
-            return .loopRed
+            return Color.loopRed
         default:
-            return .loopYellow
+            return Color.secondary
         }
     }
 

+ 1 - 1
Trio Watch App Extension/WatchState.swift

@@ -419,7 +419,7 @@ import WatchConnectivity
         // Clear
         pendingData.removeAll()
 
-        // Done - but ensure this runs at least 2 sec, to avoid flickering
+        // Done - hide sync animation
         DispatchQueue.main.async {
             self.showSyncingAnimation = false
         }