UISlider in Today View extension (widget)

I'm having problems using UISlider in iOS8 Today Extension. When you start to slide the slider to the right, everything works fine. You can continue to move from left to right and vice versa.

However, if you start to slide left, the Notification Center will scroll / bounce from the Today view in the Notifications view.

Who can help me figure out how to disable this behavior?

+6
source share
2 answers

Apple does not recommend using the slider and scrolling in the widget section, because by default you already have a swipe gesture (if you scroll correctly, the user goes to the notification section). So replace the slider with the buttons .

+3
source

Using sliders and scrolling in widgets today causes a conflict when you touch the built-in gesture recognizers that the apple is embedded in today’s view.

The solution to this (as we applied in our application) was to create a button that could be activated, and then the image of this button changed to show the current state.

+1
source

Source: https://habr.com/ru/post/976173/


All Articles