From 1deb75d041cad7ccf5f31e97c38ada6fa0137e86 Mon Sep 17 00:00:00 2001 From: CMK Date: Thu, 8 Apr 2021 11:26:15 +0800 Subject: [PATCH] chore: update cell height estimate --- Mastodon/Protocol/TableViewCellHeightCacheableContainer.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Mastodon/Protocol/TableViewCellHeightCacheableContainer.swift b/Mastodon/Protocol/TableViewCellHeightCacheableContainer.swift index ce5e453cd..7c851cadc 100644 --- a/Mastodon/Protocol/TableViewCellHeightCacheableContainer.swift +++ b/Mastodon/Protocol/TableViewCellHeightCacheableContainer.swift @@ -22,7 +22,7 @@ extension TableViewCellHeightCacheableContainer { } func handleTableView(_ tableView: UITableView, estimatedHeightForRowAt indexPath: IndexPath) -> CGFloat { - guard let item = item(for: nil, indexPath: indexPath) else { return 200 } + guard let item = item(for: nil, indexPath: indexPath) else { return UITableView.automaticDimension } guard let frame = cellFrameCache.object(forKey: NSNumber(value: item.hashValue))?.cgRectValue else { if case .bottomLoader = item { return TimelineLoaderTableViewCell.cellHeight