Update empty cell

This commit is contained in:
Igor 2017-10-10 09:50:25 +03:00
parent b7d639a3c8
commit e97a357e02
1 changed files with 3 additions and 18 deletions

View File

@ -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
}
}