From 1c92c14a1a7bb30ee8e44b88d5d3760888e3f87b Mon Sep 17 00:00:00 2001 From: Ivan Zinovyev Date: Sun, 4 Nov 2018 08:20:28 +0300 Subject: [PATCH] Fix for new swift --- Sources/ConfigurableCell.swift | 2 +- Sources/TableRow.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/ConfigurableCell.swift b/Sources/ConfigurableCell.swift index 5dd0152..dee4db2 100644 --- a/Sources/ConfigurableCell.swift +++ b/Sources/ConfigurableCell.swift @@ -36,7 +36,7 @@ public protocol ConfigurableCell { public extension ConfigurableCell { func height(for _: CellData) -> CGFloat { - return UITableViewAutomaticDimension + return UITableView.automaticDimension } } diff --git a/Sources/TableRow.swift b/Sources/TableRow.swift index d2d3bd3..1c5eef0 100644 --- a/Sources/TableRow.swift +++ b/Sources/TableRow.swift @@ -62,7 +62,7 @@ open class TableRow: Row where CellType: UITableView open func height(for cell: UITableViewCell) -> CGFloat { - return (cell as? CellType)?.height(for: item) ?? UITableViewAutomaticDimension + return (cell as? CellType)?.height(for: item) ?? UITableView.automaticDimension } // MARK: - RowActionable -