refresher
refresher copied to clipboard
Quick pull will lead to refresh twice or more times.
When I quickly pull the collectionView, the screen will refresh twice or more times. It seems that because the value of "loading" is not updated immediately. if (scrollView.isDragging == false && loading == false) { loading = true } These codes will be executed many times. Do you have a good method to solve it?
Thanks
Hey, sorry for late reply. It makes sense what are you saying. I will try to fix this when I have some time.
Or actually I am not sure, I can't reproduce that right now. Is it maybe related to this issue: https://github.com/jcavar/refresher/issues/12 Otherwise, could you send me project where this reproduces?
I had tried the methods mentioned in the issue #12, but it didn't solve the problem.
Is it possible to send project demo project that reproduces this issue?
I am having the same problem. I don't have a demo but it is happening more often in iOS 11 using swift 4.
If you could provide demo project, failing test case or some more detailed steps how to reproduce this that would be great. I don't understand why would this happen and I am not able to reproduce this myself.
After some debug, this issue caused by: update scrollview's contentInset after added refresher
to scrollview.
Please ensure set contentInset before add refresher
.
Especially, if you add refresher
in a common super viewController, double double check 🤓.
Sorry my poor english.