eggswift / pull-to-refresh

#Busy Re-Building....# An easy way to use pull to refresh and infinite scrolling in Swift. Pod 'ESPullToRefresh'
MIT License
1.83k stars 251 forks source link

ios11 loop #96

Open macrigiuseppe opened 7 years ago

macrigiuseppe commented 7 years ago

I just switch to ios11 on my simulator and phone and pull to refresh now creates a loop that keeps calling es_addPullToRefresh callback continuously.

Screenshot

screenshot 2017-09-23 23 32 42
piv199 commented 7 years ago

I'm experiencing issue like that, but

        tableView.es_addPullToRefresh { [unowned self] in
            print("I'm being called!")
            self.viewModel.updateMyPosts.apply()
                .take(duringLifetimeOf: self)
                .start()
        }

Called 7(like that) times when I open the screen...

@eggswift

piv199 commented 7 years ago

95 related

RobbeVDC commented 6 years ago

@piv199 Did you have a fix for that by chance? It's happening to me as well, can't get it to work unfortunately.

piv199 commented 6 years ago

@RobbeVDC I'm using CRRefresh for now