delay 0.3s before finish for pullToRefreshView in Feeds

This commit is contained in:
nixzhu
2015-12-30 16:32:09 +08:00
parent 0ab9540f7d
commit 1a521067cc
@@ -1267,9 +1267,11 @@ extension FeedsViewController: PullToRefreshViewDelegate {
activityIndicator.alpha = 0
let finish: () -> Void = { [weak self] in
pulllToRefreshView.endRefreshingAndDoFurtherAction() {}
delay(0.3) { //
pulllToRefreshView.endRefreshingAndDoFurtherAction() {}
self?.activityIndicator.alpha = 1
self?.activityIndicator.alpha = 1
}
}
pullToRefreshView.refreshTimeoutAction = finish