Created
November 2, 2022 10:46
-
-
Save zafarivaev/1d177a0c29fefe60b512b63e02e0d2ae to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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