我想在我的tableview中为collectionView 创建部分,在水平滚动中显示单元格集合的一部分
let width = UIScreen.main.bounds.width
layout.itemSize = CGSize(width: width - 24 , height: HomeBundleTableViewCell.itemHeight )
layout.sectionInset = UIEdgeInsets(top: 0, left: 12, bottom: 0, right: 0)
layout.minimumInteritemSpacing = 0
layout.minimumLineSpacing = 0
layout.scrollDirection = .horizontal
时,我该怎么办?