Hi folks,
I have noticed a strange issue on the latest version of iOS 12 beta. This has consistently been an issue on atleast previous 3 beta builds.
What we have in our code is a custom slider which is a subclass of UISlider. To enable tap events on the slider, we use the following code:
override func beginTracking(_ touch: UITouch, with event: UIEvent?) -> Bool {
return true
}
Now this works fine on iOS 10 and iOS 11. You can slide as usual and thanks to the above code you can tap on slider and it slides automatically. However in iOS 12 this doesn't work. You have to force touch on it for tap to work.
It is easy to replicate, add a UISlider subclassed slider in one page app and add the above function in iOS 10, 11 and 12. You can see that tap works on 10 and 11 however on 12 - only force touch (long press on SE) works.
The API diff shows no change at documentation level - I am looking forward to understand what changed here. Any help appreciated.
Awaiting reply,
Rahul Mathur