From b62dea8702e2ad789e9106b31f1a9652eb7cf732 Mon Sep 17 00:00:00 2001 From: Ivan Zinovyev Date: Sun, 22 Apr 2018 01:59:58 +0300 Subject: [PATCH] Add default implementation for height(for:) --- Sources/ConfigurableCell.swift | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Sources/ConfigurableCell.swift b/Sources/ConfigurableCell.swift index 4cc3161..dfb0ce1 100644 --- a/Sources/ConfigurableCell.swift +++ b/Sources/ConfigurableCell.swift @@ -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 {