Fix for new swift

This commit is contained in:
Ivan Zinovyev 2018-11-04 08:20:28 +03:00
parent 7416271076
commit 1c92c14a1a
2 changed files with 2 additions and 2 deletions

View File

@ -36,7 +36,7 @@ public protocol ConfigurableCell {
public extension ConfigurableCell {
func height(for _: CellData) -> CGFloat {
return UITableViewAutomaticDimension
return UITableView.automaticDimension
}
}

View File

@ -62,7 +62,7 @@ open class TableRow<CellType: ConfigurableCell>: 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 -