Просмотр исходного кода

Last loop time size and text adjustment

Deniz Cengiz 1 год назад
Родитель
Сommit
555e4de6e5

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

@@ -38,9 +38,9 @@ struct GlucoseTrendView: View {
                 }
             }
 
-            Spacer()
+//            Spacer()
 
-            Text(state.lastLoopTime ?? "--").font(is40mm ? .footnote : .caption)
+            Text(state.lastLoopTime ?? "--").font(.system(size: is40mm ? 9 : 10))
 
             Spacer()
 

+ 1 - 1
Trio/Sources/Services/WatchManager/AppleWatchManager.swift

@@ -152,7 +152,7 @@ final class BaseWatchManager: NSObject, WCSessionDelegate, Injectable, WatchMana
             if lastLoopMinutes > 1440 {
                 watchState.lastLoopTime = "--"
             } else {
-                watchState.lastLoopTime = "\(lastLoopMinutes)m"
+                watchState.lastLoopTime = "\(lastLoopMinutes) min"
             }
 
             // Set IOB and COB from latest determination