Jelajahi Sumber

Change name of function

(cherry picked from commit 514fe6c49efdc5127a660dece53b983ee428026c)
Jon Mårtensson 5 tahun lalu
induk
melakukan
a2b41de4c5

+ 2 - 2
FreeAPS/Sources/Modules/Home/View/Header/CurrentGlucoseView.swift

@@ -60,7 +60,7 @@ struct CurrentGlucoseView: View {
         return minutesDiff
         return minutesDiff
     }
     }
 
 
-    func colorOfMinutes(_ minutes: Int) -> Color {
+    func colorOfMinutesAgo(_ minutes: Int) -> Color {
         print("number of minutes ago: \(minutesAgo)")
         print("number of minutes ago: \(minutesAgo)")
         switch minutes {
         switch minutes {
         case -5 ... 0:
         case -5 ... 0:
@@ -91,7 +91,7 @@ struct CurrentGlucoseView: View {
             HStack(alignment: .lastTextBaseline, spacing: 2) {
             HStack(alignment: .lastTextBaseline, spacing: 2) {
                 Text(
                 Text(
                     "\(minutesAgo) min "
                     "\(minutesAgo) min "
-                ).font(.caption2).foregroundColor(colorOfMinutes(minutesAgo))
+                ).font(.caption2).foregroundColor(colorOfMinutesAgo(minutesAgo))
                 Text(
                 Text(
                     delta
                     delta
                         .map { deltaFormatter.string(from: Double(units == .mmolL ? $0.asMmolL : Decimal($0)) as NSNumber)!
                         .map { deltaFormatter.string(from: Double(units == .mmolL ? $0.asMmolL : Decimal($0)) as NSNumber)!