From 11eb3538fada674b218b820a184bc4e4e0ca266d Mon Sep 17 00:00:00 2001 From: ismailgulek Date: Wed, 23 Sep 2020 11:42:52 +0300 Subject: [PATCH] Change rowHeight --- .../RoomInfoList/RoomInfoListViewController.swift | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/Riot/Modules/Room/RoomInfo/RoomInfoList/RoomInfoListViewController.swift b/Riot/Modules/Room/RoomInfo/RoomInfoList/RoomInfoListViewController.swift index 8f1997b5d..f82189d61 100644 --- a/Riot/Modules/Room/RoomInfo/RoomInfoList/RoomInfoListViewController.swift +++ b/Riot/Modules/Room/RoomInfo/RoomInfoList/RoomInfoListViewController.swift @@ -197,6 +197,7 @@ final class RoomInfoListViewController: UIViewController { mainTableView.estimatedSectionHeaderHeight = 50 mainTableView.sectionFooterHeight = UITableView.automaticDimension mainTableView.estimatedSectionFooterHeight = 50 + mainTableView.rowHeight = UITableView.automaticDimension } private func render(viewState: RoomInfoListViewState) { @@ -367,15 +368,6 @@ extension RoomInfoListViewController: UITableViewDelegate { row.action?() } - func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat { - let row = sections[indexPath.section].rows[indexPath.row] - - switch row.type { - default: - return UITableView.automaticDimension - } - } - func tableView(_ tableView: UITableView, heightForHeaderInSection section: Int) -> CGFloat { if sections[section].header == nil { return 8