Add default implementation for height(for:)

This commit is contained in:
Ivan Zinovyev 2018-04-22 01:59:58 +03:00
parent 279fdd4854
commit b62dea8702
1 changed files with 8 additions and 0 deletions

View File

@ -33,6 +33,14 @@ public protocol ConfigurableCell {
}
public extension ConfigurableCell {
func height(for _: T) -> CGFloat {
return UITableViewAutomaticDimension
}
}
public extension ConfigurableCell where Self: UITableViewCell {
static var reuseIdentifier: String {