updating comments

Signed-off-by: Matt Bruce <mbrucedogs@gmail.com>
This commit is contained in:
Matt Bruce 2025-01-21 13:33:35 -06:00
parent 7501ce5936
commit 146c90f2ee

View File

@ -48,6 +48,8 @@ class EmployeesViewController: UIViewController {
// MARK: - Private Methods
/// Setting up the TableView Datasource
private func setupDataSource() {
dataSource = UITableViewDiffableDataSource<Int, Employee>(tableView: tableView) { tableView, indexPath, employee in
guard let cell = tableView.dequeueReusableCell(withIdentifier: EmployeeTableViewCell.identifier,for: indexPath) as? EmployeeTableViewCell else {
@ -58,8 +60,7 @@ class EmployeesViewController: UIViewController {
}
}
// MARK: - Snapshot Handling
//Snapshot Handling
private func applySnapshot(employees: [Employee]) {
var snapshot = NSDiffableDataSourceSnapshot<Int, Employee>()
snapshot.appendSections([0])