mirror of
https://github.com/metabolist/metatext.git
synced 2024-11-22 08:10:59 +00:00
Refresh when resuming
This commit is contained in:
parent
9df1750abc
commit
db8be2f00b
1 changed files with 4 additions and 0 deletions
|
@ -287,6 +287,10 @@ private extension TableViewController {
|
|||
.compactMap { [weak self] _ in self?.tableView.indexPathsForVisibleRows?.first }
|
||||
.sink { [weak self] in self?.viewModel.viewedAtTop(indexPath: $0) }
|
||||
.store(in: &cancellables)
|
||||
|
||||
NotificationCenter.default.publisher(for: UIScene.willEnterForegroundNotification)
|
||||
.sink { [weak self] _ in self?.viewModel.request(maxId: nil, minId: nil, search: nil) }
|
||||
.store(in: &cancellables)
|
||||
}
|
||||
|
||||
func update(_ update: CollectionUpdate) {
|
||||
|
|
Loading…
Reference in a new issue