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

update the icon for ISF on Apple Watch

Pierre L 3 лет назад
Родитель
Сommit
9c48ed92a5
1 измененных файлов с 7 добавлено и 1 удалено
  1. 7 1
      FreeAPSWatch WatchKit Extension/Views/MainView.swift

+ 7 - 1
FreeAPSWatch WatchKit Extension/Views/MainView.swift

@@ -171,8 +171,14 @@ struct MainView: View {
                     }
                 case .isf:
                     Spacer()
+                    let isf: String = state.isf != nil ? "\(state.isf ?? 0)" : "-"
                     HStack {
-                        Text("💉" + " \(state.isf ?? 0)")
+                        Image(systemName: "arrow.up.arrow.down")
+                            .renderingMode(.template)
+                            .resizable()
+                            .frame(width: 16, height: 16)
+                            .foregroundColor(.blue)
+                        Text("\(isf)")
                             .fontWeight(.regular)
                             .font(.caption2)
                             .scaledToFill()