You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
869 B
34 lines
869 B
1 year ago
|
//
|
||
|
// 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)
|
||
|
}
|
||
|
|
||
|
}
|