mirror of
https://github.com/metabolist/metatext.git
synced 2024-11-22 08:10:59 +00:00
Show alerts
This commit is contained in:
parent
f2c06e9b60
commit
dc5f9bbbcd
1 changed files with 5 additions and 0 deletions
|
@ -258,6 +258,11 @@ private extension TableViewController {
|
||||||
}
|
}
|
||||||
.store(in: &cancellables)
|
.store(in: &cancellables)
|
||||||
|
|
||||||
|
viewModel.alertItems
|
||||||
|
.compactMap { $0 }
|
||||||
|
.sink { [weak self] in self?.present(alertItem: $0) }
|
||||||
|
.store(in: &cancellables)
|
||||||
|
|
||||||
tableView.publisher(for: \.contentOffset)
|
tableView.publisher(for: \.contentOffset)
|
||||||
.compactMap { [weak self] _ in self?.tableView.indexPathsForVisibleRows?.first }
|
.compactMap { [weak self] _ in self?.tableView.indexPathsForVisibleRows?.first }
|
||||||
.sink { [weak self] in self?.viewModel.viewedAtTop(indexPath: $0) }
|
.sink { [weak self] in self?.viewModel.viewedAtTop(indexPath: $0) }
|
||||||
|
|
Loading…
Reference in a new issue