Avatar
Kishikawa Katsumi 8/31/2019 8:10 PM
Collection View Compositional Layoutsで無限ループに入るパターン。let item = NSCollectionLayoutItem(layoutSize: NSCollectionLayoutSize(widthDimension: .fractionalWidth(1), heightDimension: .estimated(44))) let group = NSCollectionLayoutGroup.vertical(layoutSize: NSCollectionLayoutSize(widthDimension: .fractionalWidth(1), heightDimension: .absolute(44)), subitems: [item]) let section = NSCollectionLayoutSection(group: group) let layout = UICollectionViewCompositionalLayout(section: section) https://github.com/kishikawakatsumi/CollectionViewCompositionalLayouts-InfiniteLoop (edited)