From e97a357e02431c85fa221365b63040124acc72bf Mon Sep 17 00:00:00 2001 From: Igor Date: Tue, 10 Oct 2017 09:50:25 +0300 Subject: [PATCH] Update empty cell --- .../Classes/Views/EmptyCell/EmptyCell.swift | 21 +++---------------- 1 file changed, 3 insertions(+), 18 deletions(-) diff --git a/Sources/Classes/Views/EmptyCell/EmptyCell.swift b/Sources/Classes/Views/EmptyCell/EmptyCell.swift index 02b52e8f..a1cb8930 100644 --- a/Sources/Classes/Views/EmptyCell/EmptyCell.swift +++ b/Sources/Classes/Views/EmptyCell/EmptyCell.swift @@ -25,26 +25,11 @@ import TableKit public final class EmptyCell: BaseCell, ConfigurableCell { - private lazy var coloredView: UIView = { - let newView = UIView() - self.addSubview(newView) - - newView.translatesAutoresizingMaskIntoConstraints = false - self.topAnchor.constraint(equalTo: newView.topAnchor).isActive = true - self.bottomAnchor.constraint(equalTo: newView.bottomAnchor).isActive = true - self.leadingAnchor.constraint(equalTo: newView.leadingAnchor).isActive = true - self.trailingAnchor.constraint(equalTo: newView.trailingAnchor).isActive = true - - return newView - }() - - deinit { - debugPrint("Deinit") - } - public func configure(with viewModel: EmptyCellViewModel) { + backgroundColor = .clear + contentView.backgroundColor = viewModel.color + configureSeparator(with: viewModel) - coloredView.backgroundColor = viewModel.color } }