mirror of
https://github.com/metabolist/metatext
synced 2024-12-26 09:42:48 +01:00
Show alerts
This commit is contained in:
parent
f2c06e9b60
commit
dc5f9bbbcd
@ -258,6 +258,11 @@ private extension TableViewController {
|
||||
}
|
||||
.store(in: &cancellables)
|
||||
|
||||
viewModel.alertItems
|
||||
.compactMap { $0 }
|
||||
.sink { [weak self] in self?.present(alertItem: $0) }
|
||||
.store(in: &cancellables)
|
||||
|
||||
tableView.publisher(for: \.contentOffset)
|
||||
.compactMap { [weak self] _ in self?.tableView.indexPathsForVisibleRows?.first }
|
||||
.sink { [weak self] in self?.viewModel.viewedAtTop(indexPath: $0) }
|
||||
|
Loading…
Reference in New Issue
Block a user