Update table view

This commit is contained in:
Kyle Bashour 2022-11-26 23:49:51 -08:00
parent 176067800c
commit 459564ae6b
1 changed files with 15 additions and 0 deletions

View File

@ -67,6 +67,21 @@ extension StatusTableViewCell {
}
}
.store(in: &disposeBag)
statusView.viewModel.$card
.removeDuplicates()
.dropFirst()
.receive(on: DispatchQueue.main)
.sink { [weak tableView, weak self] _ in
guard let tableView = tableView else { return }
guard let _ = self else { return }
UIView.performWithoutAnimation {
tableView.beginUpdates()
tableView.endUpdates()
}
}
.store(in: &disposeBag)
}
}