dekatotoro / dekatotoro/PullToRefreshSwift

refreshCompletion getting called on addPullToRefresh / viewDidLoad

Open
#7 4 comments 1 reaction 0 assignees View on GitHub
Dominant language
Swift
Stars
535
Forks
101
PR merge metrics
No merged PRs in 30d

Description

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
}
(...)
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.