Fix scroll interruption
This commit is contained in:
parent
083b52c802
commit
32f557866a
|
@ -254,12 +254,12 @@ private extension TableViewController {
|
||||||
.sink { [weak self] in
|
.sink { [weak self] in
|
||||||
guard let self = self else { return }
|
guard let self = self else { return }
|
||||||
|
|
||||||
if !$0 {
|
let refreshControlVisibile = self.refreshControl?.isRefreshing ?? false
|
||||||
|
|
||||||
|
if !$0, refreshControlVisibile {
|
||||||
self.refreshControl?.endRefreshing()
|
self.refreshControl?.endRefreshing()
|
||||||
}
|
}
|
||||||
|
|
||||||
let refreshControlVisibile = self.refreshControl?.isRefreshing ?? false
|
|
||||||
|
|
||||||
self.tableView.tableFooterView = $0 && !refreshControlVisibile ? self.loadingTableFooterView : UIView()
|
self.tableView.tableFooterView = $0 && !refreshControlVisibile ? self.loadingTableFooterView : UIView()
|
||||||
self.sizeTableHeaderFooterViews()
|
self.sizeTableHeaderFooterViews()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue