// // CollectionViewCell.swift // Lookfit // // Created by Sheldon on 2021/9/19. // Copyright © 2021 Sheldon. All rights reserved. // import UIKit class CollectionViewCell: UICollectionViewCell { var cellDisposeBag = DisposeBag() lazy var containerView: UIView = { let view = UIView() view.backgroundColor = .clear addSubview(view) view.snp.makeConstraints({ (make) in make.edges.equalToSuperview() }) return view }() override init(frame: CGRect) { super.init(frame: frame) setUpUI() layoutUI() } required init?(coder: NSCoder) { super.init(coder: coder) setUpUI() layoutUI() } func setUpUI() { backgroundColor = .clear } func layoutUI() {} func bind(model: ViewModel) { } override func prepareForReuse() { super.prepareForReuse() cellDisposeBag = DisposeBag() } }