PullToRefresh icon indicating copy to clipboard operation
PullToRefresh copied to clipboard

Call endRefreshing(at: .top) has no effect

Open zyvv opened this issue 4 years ago • 2 comments

If I only add PullToRefresh on top and not bottom, then calling endRefreshing(at: .top) will have no effect.

In addition, if the top constraint of scrollView can follow the height-change of the navigation bar (make.edges.equalToSuperview()), like Twitter or YouTube app, scrollview will bounce and other problems.

zyvv avatar Jun 10 '21 01:06 zyvv

func endRefreshing() { // guard isEnabled else { return }

    if state == .loading {
        state = .finished
    }
}

去掉

wuxiangru avatar Feb 28 '22 08:02 wuxiangru

If I only add PullToRefresh on top and not bottom, then calling endRefreshing(at: .top) will have no effect.

In addition, if the top constraint of scrollView can follow the height-change of the navigation bar (make.edges.equalToSuperview()), like Twitter or YouTube app, scrollview will bounce and other problems.

Invoke refreshControl.setEnable(isEnabled: true) before calling endRefreshing(at: .top).

pokeduck avatar Mar 18 '22 10:03 pokeduck