Skip to content

Instantly share code, notes, and snippets.

@zafarivaev
Created November 2, 2022 10:46
Show Gist options
  • Save zafarivaev/1d177a0c29fefe60b512b63e02e0d2ae to your computer and use it in GitHub Desktop.
Save zafarivaev/1d177a0c29fefe60b512b63e02e0d2ae to your computer and use it in GitHub Desktop.
import UIKit
public final class TableDirector: NSObject, UITableViewDataSource, UITableViewDelegate {
// 1
public weak var tableView: UITableView?
// 2
public init(tableView: UITableView) {
self.tableView = tableView
super.init()
self.tableView?.dataSource = self
self.tableView?.delegate = self
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment