nicklockwood/SwipeView

SwipeView break uitableview content offset

WenchaoD opened this issue · 1 comments

Hi nick,
I used UITableView as SwipeView itemView, but everytime I begin draging, the tableView will scroll to top Cell. I traced the code here in layoutItemViews:
image

Every time didScroll triggers layoutItemViews, and then triggers setBounds. But for a UIScrollView, the bounds is the contentOffset actually, so I changed the code to:
image

And now the issues gone. Did you set the bounds every time on purpose?

thanks!