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

Remove commented out code; show correct crown rotation icon based on wrist location

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

+ 6 - 3
Trio Watch App Extension/Views/BolusConfirmationView.swift

@@ -93,9 +93,12 @@ struct BolusConfirmationView: View {
         .background(trioBackgroundColor)
         .toolbar {
             ToolbarItem(placement: .topBarTrailing) {
-                Image(systemName: "digitalcrown.arrow.counterclockwise.fill")
-                    .symbolRenderingMode(.hierarchical)
-                    .foregroundStyle(Color.white)
+                Image(
+                    systemName: WKInterfaceDevice.current()
+                        .wristLocation == .left ? "digitalcrown.arrow.clockwise.fill" : "digitalcrown.arrow.counterclockwise.fill"
+                )
+                .symbolRenderingMode(.hierarchical)
+                .foregroundStyle(Color.white)
             }
         }
         .blur(radius: state.showBolusProgressOverlay ? 3 : 0)

+ 0 - 1
Trio Watch App Extension/Views/TrioMainWatchView.swift

@@ -14,7 +14,6 @@ struct TrioMainWatchView: View {
     @State private var showingOverrideSheet: Bool = false
     // navigation flag for meal bolus combo
     @State private var continueToBolus = false
-//    @State private var navigationPath: [NavigationDestinations] = []
     @State private var navigationPath = NavigationPath()
 
     // treatments