Open ledian101 opened 5 years ago
is there any solution? I got the same problem
I'm facing same problem as well. In my case, my slider is embedded in a collection view cell. It cannot drag the handles smoothly. I found that, in iOS 13, the modally presentation is embed with a gesture automatically for pulling down to dismiss the view. I think this gesture is conflict with the collection view scrolling which stop the drag action of handles of the slider. My workaround is set the presentation from "Same As Destination" to "Full Screen".
The same issue happened in my project as well. I am using this SDK in SwiftUI and rendering it on a sheet presentation. The handles are not dragging smoothly and causing the sheet to move up or down. I think the touch events are being registered by the sheet to move it up/down to dismiss it, the SDK needs to handle the touches on sheet properly. Any solution available with anyone?
Found this answer on Stackoverflow https://stackoverflow.com/questions/58001780/swipe-gesture-interrupts-uislider-control-in-ios-13-but-not-previous-ios-versio so if it works for you give the OP on StackOverflow some credit!
If you add a panGesture to a RangeSlider as follows, the cancelTouchesInView = false should allow RangeSlider to operate normally.
let panGesture = UIPanGestureRecognizer(target: nil, action:nil) panGesture.cancelsTouchesInView = false slider.addGestureRecognizer(panGesture)
The solution given by @sanvean worked ! Thanks
I also confirm that the solution by @sanvean worked !
It also work in every views that include scrolling. I had the issue in a scroll view, and this helped a lot !
+1 for @sanvean's suggestion!
Good one @sanvean !
The solution given by @sanvean worked ! Thanks
Found this answer on Stackoverflow https://stackoverflow.com/questions/58001780/swipe-gesture-interrupts-uislider-control-in-ios-13-but-not-previous-ios-versio so if it works for you give the OP on StackOverflow some credit!
If you add a panGesture to a RangeSlider as follows, the cancelTouchesInView = false should allow RangeSlider to operate normally.
let panGesture = UIPanGestureRecognizer(target: nil, action:nil) panGesture.cancelsTouchesInView = false slider.addGestureRecognizer(panGesture)
thanks worked forme
New Issue Checklist
RangeSeekSlider
to the latest versionIssue Description
I am using the RangeSeekSlider in a project that uses iOS 12. The slider is embedded in a not expandable collection view cell. When updated to iOS 13 beta, the slider does not respond anymore. I tested it also with other iOS versions and it works as always.
Environment
iOS version: iOS 13 beta 6