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

only left swipe and add symbol

ejm0 2 дней назад
Родитель
Сommit
d0cb803f64
1 измененных файлов с 2 добавлено и 5 удалено
  1. 2 5
      Trio/Sources/Views/SnoozeAlertsSheetView.swift

+ 2 - 5
Trio/Sources/Views/SnoozeAlertsSheetView.swift

@@ -17,7 +17,7 @@ struct SnoozeAlertsSheetView: View {
         NavigationStack {
             List {
                 if snoozeUntilDate > Date() {
-                    Section(footer: Text("Swipe left or right to end snooze.")) {
+                    Section(footer: Text("Swipe left to end snooze.")) {
                         HStack {
                             Image(systemName: "moon.zzz.fill").foregroundStyle(.tint)
                             Text(String(
@@ -26,9 +26,6 @@ struct SnoozeAlertsSheetView: View {
                             ))
                                 .font(.headline)
                         }
-                        .swipeActions(edge: .leading, allowsFullSwipe: true) {
-                            endSnoozeAction
-                        }
                         .swipeActions(edge: .trailing, allowsFullSwipe: true) {
                             endSnoozeAction
                         }
@@ -73,7 +70,7 @@ struct SnoozeAlertsSheetView: View {
         Button(role: .destructive) {
             endSnooze()
         } label: {
-            Text("End Snooze")
+            Label("End Snooze", systemImage: "hand.draw.fill")
         }
         .tint(.red)
     }