diff --git a/PocketKit/Sources/PocketKit/Home/HomeCollectionViewSectionProvider.swift b/PocketKit/Sources/PocketKit/Home/HomeCollectionViewSectionProvider.swift index ff7621089..22cea882f 100644 --- a/PocketKit/Sources/PocketKit/Home/HomeCollectionViewSectionProvider.swift +++ b/PocketKit/Sources/PocketKit/Home/HomeCollectionViewSectionProvider.swift @@ -58,7 +58,7 @@ class HomeViewControllerSectionProvider { widthDimension: .fractionalWidth(itemWidthPercentage * Double(numberOfRecentSavesItems)), heightDimension: .absolute(StyleConstants.groupHeight) ), - subitem: item, + repeatingSubitem: item, count: numberOfRecentSavesItems ) group.interItemSpacing = .fixed(16) @@ -152,7 +152,7 @@ class HomeViewControllerSectionProvider { let item = NSCollectionLayoutItem(layoutSize: itemSize) let groupSize = NSCollectionLayoutSize(widthDimension: .fractionalWidth(0.8*Double(numberOfCarouselItems)), heightDimension: .absolute(StyleConstants.groupHeight)) - let group = NSCollectionLayoutGroup.horizontal(layoutSize: groupSize, subitem: item, count: numberOfCarouselItems) + let group = NSCollectionLayoutGroup.horizontal(layoutSize: groupSize, repeatingSubitem: item, count: numberOfCarouselItems) group.interItemSpacing = .fixed(16) let section = NSCollectionLayoutSection(group: group) @@ -179,7 +179,7 @@ class HomeViewControllerSectionProvider { widthDimension: .fractionalWidth(1), heightDimension: .absolute(StyleConstants.groupHeight) ), - subitem: .init( + repeatingSubitem: .init( layoutSize: .init( widthDimension: .fractionalWidth(0.5), heightDimension: .fractionalHeight(1) @@ -196,7 +196,7 @@ class HomeViewControllerSectionProvider { widthDimension: .fractionalWidth(1), heightDimension: .absolute( numberOfGroups * StyleConstants.groupHeight + - (Constants.sectionSpacing * (numberOfGroups - 1)) + (Constants.spacing * (numberOfGroups - 1)) ) ), subitems: groups