Compare commits

...

2 Commits

Author SHA1 Message Date
e72bf8327d Merge branch 'requestBuilder' into requestBuilder-search 2025-02-03 15:03:16 -06:00
b1e2d7944a removed old code
Signed-off-by: Matt Bruce <mbrucedogs@gmail.com>
2025-02-03 15:03:03 -06:00

View File

@ -189,27 +189,7 @@ class EmployeesViewController: UIViewController {
} }
.store(in: &cancellables) .store(in: &cancellables)
} }
private func animateEmployeeChanges(from oldEmployees: [Employee], to newEmployees: [Employee]) {
let oldCount = oldEmployees.count
let newCount = newEmployees.count
// Case: Removing all employees
if oldCount > 0 && newCount == 0 {
let indexPaths = (0..<oldCount).map { IndexPath(row: $0, section: 0) }
tableView.performBatchUpdates {
tableView.deleteRows(at: indexPaths, with: .fade)
}
return
}
// Case: Resetting with new data (or switching modes)
if newCount > 0 {
tableView.reloadData()
return
}
}
/// Show state in specific use-cases for the EmployeesViewModel /// Show state in specific use-cases for the EmployeesViewModel
private func updateFooter() { private func updateFooter() {
var footerMessage: String? var footerMessage: String?