MyCustomers/ViewControllers/ListCustomersViewController.swift
import UIKit
class ListCustomersViewController: UIViewController {
// MARK: Outlets
@IBOutlet weak var tableView: UITableView!
// MARK: Properties
var customersDataSource: ListCustomersDataSource?
// MARK: UIView
override func viewDidLoad() {
super.viewDidLoad()
}
override func viewDidAppear(_ animated: Bool) {
configureDataSource()
tableView.reloadData()
}
// MARK: Setups
fileprivate func configureDataSource() {
customersDataSource = ListCustomersDataSource()
if let customersDataSource = customersDataSource {
tableView.dataSource = customersDataSource
}
}
}