-
-
Notifications
You must be signed in to change notification settings - Fork 143
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In addition to handling drag gesture changes & ending, also handle ca… #149
In addition to handling drag gesture changes & ending, also handle ca… #149
Conversation
…ncelled drag gesture. Fixes lucaszischka#148.
Hello Jukka Hietanen,
to Anyway, I will not release a new version until I had time to test it. This means for you (or anyone else having this issue), that you will either have to use the Sorry for the inconvenience and thank you very much for helping me out! Greetings from Munich, |
Thanks! ❤️❤️ Can we get this merged? This bug makes dragging from the bottom pretty much a no go, imho. I've tested it on a real device with iOS 17.3.1 on an iPhone 12 mini and a bunch of different iPhone and iPad simulators with iOS 17.0. I will try this in production on a small user base. |
@juhieta could you apply this patch to the PR? It should fix the macOS build. 😺 diff --git a/Sources/BottomSheet/Helper/Extensions/ViewExtension.swift b/Sources/BottomSheet/Helper/Extensions/ViewExtension.swift
index 4a49adf..689f760 100644
--- a/Sources/BottomSheet/Helper/Extensions/ViewExtension.swift
+++ b/Sources/BottomSheet/Helper/Extensions/ViewExtension.swift
@@ -13,7 +13,7 @@ import Combine
internal extension View {
/// A backwards compatible wrapper for iOS 14 onChange
@ViewBuilder func valueChanged<T: Equatable>(value: T, onChange: @escaping (T) -> Void) -> some View {
- if #available(iOS 14.0, *) {
+ if #available(iOS 14.0, macOS 11.0, *) {
self.onChange(of: value, perform: onChange)
} else {
self.onReceive(Just(value)) { (value) in |
Hi, sorry about delay and will do asap! 😊 |
Now pushed the macOS fix @fickledogfish. @lucaszischka can this now be merged to main? |
Hi, do you think there will be a delivery soon for this fix? |
…ncelled drag gesture. Fixes #148.