Ivan Valkou 4 лет назад
Родитель
Сommit
7631dcdbb7

+ 2 - 0
FreeAPS/Sources/Modules/Home/View/HomeRootView.swift

@@ -99,6 +99,8 @@ extension Home {
                 ).onTapGesture {
                     isStatusPopupPresented = true
                 }.onLongPressGesture {
+                    let impactHeavy = UIImpactFeedbackGenerator(style: .heavy)
+                    impactHeavy.impactOccurred()
                     state.runLoop()
                 }
                 Spacer()

+ 1 - 3
FreeAPS/Sources/Modules/Snooze/View/SnoozeRootView.swift

@@ -107,9 +107,7 @@ extension Snooze {
         }
 
         var snoozeDesc: some View {
-            VStack(alignment: .leading) {
-                Text(snoozeDescription)
-            }
+            Text(snoozeDescription)
         }
 
         var body: some View {

+ 1 - 1
FreeAPS/Sources/Services/UserNotifiactions/UserNotificationsManager.swift

@@ -313,7 +313,7 @@ final class BaseUserNotificationsManager: NSObject, UserNotificationsManager, In
     static let soundID: UInt32 = 1336
     private static var stopPlaying = false
 
-    private func playSound(times: Int = 3) {
+    private func playSound(times: Int = 1) {
         guard times > 0, !Self.stopPlaying else {
             return
         }