PullToRefreshSwift
PullToRefreshSwift copied to clipboard
refreshCompletion getting called on addPullToRefresh / viewDidLoad
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 think it's because autoStopTime is bei default 0.7 😅
+1
I will removed this library because this bug is very uncomfortable.
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