DGElasticPullToRefresh
DGElasticPullToRefresh copied to clipboard
How to Fire the Pull to Refresh?
It would be nice to have a method to fire the pull to refresh, something like objc dg_startLoading
Hey. With a bounce effect?
With bounce effect would be a big plus, but to fire without the bounce animation it's fine. Thanks for this project btw.
I started working on this and I'm able to start the animation by changing the content offset of the scrollView.
func startAnimating() {
scrollView()?.setContentOffset(CGPoint(x: 0, y: -DGElasticPullToRefreshConstants.MinOffsetToPull), animated: true)
}
The problem is that the UIScrollView
doesn't bounce back and fires the actionHandler. Which property are you observing to detect when to refresh? I read the code for the last 2 hours but I couldn't find anything useful.
+1
There is "func dg_startLoading()" mentioned in the README, but it isn't there. Would anyone help about it? Thank you so much!
Hi there,
any news about this?
There is actually a fix out there that works (see: https://github.com/Sunreaver/DGElasticPullToRefresh). Is it possible to pull this into the official repo?
Btw: Awesome refresher!
+1 Is it possible? Any working solution? This one by drakon doesn't work for me.
@sanderus2311 The one from drakon works for me, what do you see?