From d4fc9246760deb73ea3f8af94fe6cf7aa284c263 Mon Sep 17 00:00:00 2001 From: Max Sokolov Date: Thu, 3 Nov 2016 19:50:29 +0300 Subject: [PATCH] call prepareForReuse on prototype cell --- Sources/TablePrototypeCellHeightCalculator.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/Sources/TablePrototypeCellHeightCalculator.swift b/Sources/TablePrototypeCellHeightCalculator.swift index 0f29a6f..462d7a7 100644 --- a/Sources/TablePrototypeCellHeightCalculator.swift +++ b/Sources/TablePrototypeCellHeightCalculator.swift @@ -50,6 +50,7 @@ open class TablePrototypeCellHeightCalculator: RowHeightCalculator { guard let cell = prototypeCell else { return 0 } + cell.prepareForReuse() row.configure(cell) cell.bounds = CGRect(x: 0, y: 0, width: tableView.bounds.size.width, height: cell.bounds.height)