PullToRefreshSwift icon indicating copy to clipboard operation
PullToRefreshSwift copied to clipboard

refreshCompletion getting called on addPullToRefresh / viewDidLoad

Open lm2s opened this issue 9 years ago • 4 comments

The refreshCompletion block is getting called while the view is loading.

After debugging I've found that this condition is being executed while the view is loading / appearing:

public override func observeValueForKeyPath(...) {
(...)
if (scrollView.dragging == false && self.state != .Refreshing) {
 self.state = .Refreshing
}
(...)

lm2s avatar Nov 14 '15 01:11 lm2s

I think it's because autoStopTime is bei default 0.7 😅

Spacelapp avatar Dec 12 '15 16:12 Spacelapp

+1

ppamorim avatar Feb 22 '16 17:02 ppamorim

I will removed this library because this bug is very uncomfortable.

ppamorim avatar Feb 22 '16 18:02 ppamorim

The refreshCompletion block is getting called while the view is loading.

After debugging I've found that this condition is being executed while the view is loading / appearing:

public override func observeValueForKeyPath(...) {
(...)
if (scrollView.dragging == false && self.state != .Refreshing) {
 self.state = .Refreshing
}
(...)

I am facing same issue but only in iPhoneXSMax

SaurabhPrajapati avatar Oct 04 '19 05:10 SaurabhPrajapati