Fix scroll interruption

This commit is contained in:
Justin Mazzocchi 2021-01-18 19:24:43 -08:00
parent 083b52c802
commit 32f557866a
No known key found for this signature in database
GPG Key ID: E223E6937AAFB01C
1 changed files with 3 additions and 3 deletions

View File

@ -254,12 +254,12 @@ private extension TableViewController {
.sink { [weak self] in
guard let self = self else { return }
if !$0 {
let refreshControlVisibile = self.refreshControl?.isRefreshing ?? false
if !$0, refreshControlVisibile {
self.refreshControl?.endRefreshing()
}
let refreshControlVisibile = self.refreshControl?.isRefreshing ?? false
self.tableView.tableFooterView = $0 && !refreshControlVisibile ? self.loadingTableFooterView : UIView()
self.sizeTableHeaderFooterViews()
}