Skip to content

Commit 8d98525

Browse files
committed
Fix increase and decrease issue
1 parent 8096969 commit 8d98525

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Sources/OpenSwiftUI/View/Control/SensoryFeedback/UIKit/UIKitSensoryFeedbackCache.swift

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,9 @@ class UIKitSensoryFeedbackCache<V>: AnyUIKitSensoryFeedbackCache where V: View {
5959
} createIfNeeded: {
6060
UINotificationFeedbackGenerator()
6161
}
62-
case .levelChange, .start, .stop:
63-
nil
64-
case .increase, .decrease, .selection:
62+
// SwiftUI implementation Bug: introduced since iOS 17 & iOS 26.2 is still not fixed
63+
// FB21332474
64+
case /*.increase, .decrease,*/ .selection:
6565
getGenerator(type) {
6666
SelectionFeedbackImplementation(
6767
generator: $0
@@ -104,6 +104,7 @@ class UIKitSensoryFeedbackCache<V>: AnyUIKitSensoryFeedbackCache where V: View {
104104
case .soft: UIImpactFeedbackGenerator(style: .soft)
105105
}
106106
}
107+
default: nil
107108
}
108109
}
109110

0 commit comments

Comments
 (0)