updating comments
Signed-off-by: Matt Bruce <mbrucedogs@gmail.com>
This commit is contained in:
parent
7501ce5936
commit
146c90f2ee
@ -48,6 +48,8 @@ class EmployeesViewController: UIViewController {
|
|||||||
|
|
||||||
// MARK: - Private Methods
|
// MARK: - Private Methods
|
||||||
|
|
||||||
|
|
||||||
|
/// Setting up the TableView Datasource
|
||||||
private func setupDataSource() {
|
private func setupDataSource() {
|
||||||
dataSource = UITableViewDiffableDataSource<Int, Employee>(tableView: tableView) { tableView, indexPath, employee in
|
dataSource = UITableViewDiffableDataSource<Int, Employee>(tableView: tableView) { tableView, indexPath, employee in
|
||||||
guard let cell = tableView.dequeueReusableCell(withIdentifier: EmployeeTableViewCell.identifier,for: indexPath) as? EmployeeTableViewCell else {
|
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]) {
|
private func applySnapshot(employees: [Employee]) {
|
||||||
var snapshot = NSDiffableDataSourceSnapshot<Int, Employee>()
|
var snapshot = NSDiffableDataSourceSnapshot<Int, Employee>()
|
||||||
snapshot.appendSections([0])
|
snapshot.appendSections([0])
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user