// // CollectionController.swift // Lookfit // // Created by Mac on 2021/3/12. // Copyright © 2021 Sheldon. All rights reserved. // import UIKit class CollectionController: ViewController { var collectionViewFlowLayout: UICollectionViewFlowLayout? lazy var collectionView: CollectionView = { let view = CollectionView(frame: CGRect.zero, collectionViewLayout: collectionViewFlowLayout ?? UICollectionViewFlowLayout()) self.view.addSubview(view) // view.snp.makeConstraints { (make) in // make.top.left.right.equalToSuperview() // make.bottom.equalTo(bottomLayoutGuide.snp.bottom) // } return view }() override func viewDidLoad() { super.viewDidLoad() } override func viewWillAppear(_ animated: Bool) { super.viewWillAppear(animated) } }