فهرست منبع

Quick bolus: add haptic feedback on long press of + button

Reuses the same UIImpactFeedbackGenerator(style: .heavy) pattern as the loop icon long press.
t1dude 1 هفته پیش
والد
کامیت
6a2f6c9ff6
1فایلهای تغییر یافته به همراه2 افزوده شده و 0 حذف شده
  1. 2 0
      Trio/Sources/Modules/Home/View/HomeRootView.swift

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

@@ -1122,6 +1122,8 @@ extension Home {
                     }
                     .onLongPressGesture(minimumDuration: 0.5) {
                         guard state.enableQuickBolus else { return }
+                        let impactHeavy = UIImpactFeedbackGenerator(style: .heavy)
+                        impactHeavy.impactOccurred()
                         Task {
                             await state.loadQuickBolusSuggestions()
                             if state.quickBolusHistory.isEmpty {