viktorHbenitez / TableView-CollectionView

Add TableView into CollectionView cell to demonstrate Trello Boards

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TableView into CollectionView

version app

// Create CollectionView
lazy var collectionView: UICollectionView = {
    let layout = UICollectionViewFlowLayout()
    layout.sectionInset = .zero
    layout.scrollDirection = .horizontal
    layout.minimumLineSpacing = .zero
    layout.minimumInteritemSpacing = .zero

    let collection = UICollectionView(frame: .zero, collectionViewLayout: layout)
    
    collection.backgroundColor = .white
    collection.delegate = self
    collection.dataSource = self
    collection.isPagingEnabled = true
    collection.translatesAutoresizingMaskIntoConstraints = false
    return collection
  }()

About

Add TableView into CollectionView cell to demonstrate Trello Boards


Languages

Language:Swift 100.0%