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 -