Browse Source

add symbol to footer and to leftswipe action

ejm0 2 ngày trước cách đây
mục cha
commit
59bce547ac

+ 8 - 3
Trio/Sources/Views/SnoozeAlertsSheetView.swift

@@ -17,7 +17,7 @@ struct SnoozeAlertsSheetView: View {
         NavigationStack {
         NavigationStack {
             List {
             List {
                 if snoozeUntilDate > Date() {
                 if snoozeUntilDate > Date() {
-                    Section(footer: Text("Swipe left to end snooze.")) {
+                    Section {
                         HStack {
                         HStack {
                             Image(systemName: "moon.zzz.fill").foregroundStyle(.tint)
                             Image(systemName: "moon.zzz.fill").foregroundStyle(.tint)
                             Text(String(
                             Text(String(
@@ -29,8 +29,13 @@ struct SnoozeAlertsSheetView: View {
                         .swipeActions(edge: .trailing, allowsFullSwipe: true) {
                         .swipeActions(edge: .trailing, allowsFullSwipe: true) {
                             endSnoozeAction
                             endSnoozeAction
                         }
                         }
+                        .listRowBackground(Color.chart)
+                    } footer: {
+                        HStack {
+                            Image(systemName: "hand.draw.fill").foregroundStyle(.primary)
+                            Text("Swipe left to end snooze.")
+                        }
                     }
                     }
-                    .listRowBackground(Color.chart)
                 }
                 }
                 Section(footer: Text(
                 Section(footer: Text(
                     "Pick a duration to mute every Trio alarm. Critical alerts (e.g. occlusion, urgent low) still pierce the snooze."
                     "Pick a duration to mute every Trio alarm. Critical alerts (e.g. occlusion, urgent low) still pierce the snooze."
@@ -70,7 +75,7 @@ struct SnoozeAlertsSheetView: View {
         Button(role: .destructive) {
         Button(role: .destructive) {
             endSnooze()
             endSnooze()
         } label: {
         } label: {
-            Label("End Snooze", systemImage: "hand.draw.fill")
+            Label("End Snooze", systemImage: "alarm.waves.left.and.right.fill")
         }
         }
         .tint(.red)
         .tint(.red)
     }
     }