From 31f6e50ad70e7ca5b4e5611097746a9dc01fd0ce Mon Sep 17 00:00:00 2001 From: Daniel Springer Date: Mon, 30 Oct 2023 15:47:53 -0700 Subject: [PATCH 1/3] return default row height instead of a calculation --- Sources/TableViewDriver.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/TableViewDriver.swift b/Sources/TableViewDriver.swift index 304c845..76b7d22 100644 --- a/Sources/TableViewDriver.swift +++ b/Sources/TableViewDriver.swift @@ -330,7 +330,7 @@ extension TableViewDriver: UITableViewDelegate { /// :nodoc: public func tableView(_ tableView: UITableView, estimatedHeightForRowAt indexPath: IndexPath) -> CGFloat { guard let tableViewModel = self.tableViewModel else { return 0 } - return tableViewModel[ifExists: indexPath]?.rowHeight ?? tableViewModel.defaultRowHeight + return tableViewModel.defaultRowHeight } /// :nodoc: From c736c347a14f6df8fe678186a5ddd4671a79eb1c Mon Sep 17 00:00:00 2001 From: Daniel Date: Fri, 3 Nov 2023 13:47:41 -0700 Subject: [PATCH 2/3] update changelog --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7a12aad..c799fff 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,10 @@ The changelog for `ReactiveLists`. Also see the [releases](https://github.com/pl NEXT ---- +0.8.2 +----- +- Use default row heights for cell estimation + 0.8.1.9 ----- - Added UITableViewDelegate calls for estimated row, header, footer heights From 5ef02235c151cb97faac62a638212b44dc6d1d88 Mon Sep 17 00:00:00 2001 From: Daniel Date: Fri, 3 Nov 2023 13:49:26 -0700 Subject: [PATCH 3/3] update podspec --- ReactiveLists.podspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ReactiveLists.podspec b/ReactiveLists.podspec index d4031ee..a9731e2 100644 --- a/ReactiveLists.podspec +++ b/ReactiveLists.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = "ReactiveLists" - s.version = "0.8.1.beta.9" + s.version = "0.8.2" s.summary = "React-like API for UITableView and UICollectionView" s.homepage = "https://github.com/plangrid/ReactiveLists"