Make ExpandableCellHeightCalculator optional, not default

This commit is contained in:
Ivan Zinovyev 2019-01-09 16:04:32 +03:00
parent 6ef5ad504e
commit 497b4e009c
1 changed files with 1 additions and 1 deletions

View File

@ -60,7 +60,7 @@ open class TableDirector: NSObject, UITableViewDataSource, UITableViewDelegate {
self.cellRegisterer = TableCellRegisterer(tableView: tableView) self.cellRegisterer = TableCellRegisterer(tableView: tableView)
} }
self.rowHeightCalculator = cellHeightCalculator ?? ExpandableCellHeightCalculator(tableView: tableView) self.rowHeightCalculator = cellHeightCalculator
self.scrollDelegate = scrollDelegate self.scrollDelegate = scrollDelegate
self.tableView = tableView self.tableView = tableView
self.tableView?.delegate = self self.tableView?.delegate = self