RangeSeekSlider icon indicating copy to clipboard operation
RangeSeekSlider copied to clipboard

Slider does not work with iOS 13 in a collection view

Open ledian101 opened this issue 5 years ago • 10 comments

New Issue Checklist

  • [x] Updated RangeSeekSlider to the latest version
  • [x] Checked Gitter

Issue 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

ledian101 avatar Aug 27 '19 13:08 ledian101

is there any solution? I got the same problem

dimitrow avatar Oct 22 '19 14:10 dimitrow

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". image

Oowomn avatar Oct 25 '19 02:10 Oowomn

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?

tejasdhanuka avatar Nov 12 '19 04:11 tejasdhanuka

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)

sanvean avatar Dec 02 '19 13:12 sanvean

The solution given by @sanvean worked ! Thanks

santoshn547 avatar Feb 22 '20 11:02 santoshn547

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 !

rollin-s avatar May 19 '20 15:05 rollin-s

+1 for @sanvean's suggestion!

SteveBlackUK avatar Jul 30 '20 21:07 SteveBlackUK

Good one @sanvean !

philosopherdog avatar Nov 23 '20 21:11 philosopherdog

The solution given by @sanvean worked ! Thanks

saqibaliempg avatar Jun 29 '21 03:06 saqibaliempg

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

arwenGhafoor avatar Dec 19 '21 13:12 arwenGhafoor