Skip to content

Commit

Permalink
return default row height instead of a calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
DerCSpringer committed Oct 30, 2023
1 parent 978a4cb commit 31f6e50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/TableViewDriver.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 31f6e50

Please sign in to comment.