Skip to content

Commit 127df09

Browse files
Remove decoration items from orthogonal sections
1 parent 81a9ae4 commit 127df09

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

Sources/IBPCollectionViewCompositionalLayout/IBPUICollectionViewCompositionalLayout.m

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -456,6 +456,7 @@ - (UICollectionView *)setupOrthogonalScrollViewForSection:(IBPNSCollectionLayout
456456
IBPNSCollectionLayoutSection *orthogonalSection = section.copy;
457457
orthogonalSection.contentInsets = IBPNSDirectionalEdgeInsetsZero;
458458
orthogonalSection.boundarySupplementaryItems = @[];
459+
orthogonalSection.decorationItems = @[];
459460
orthogonalSection.orthogonalScrollingBehavior = IBPUICollectionLayoutSectionOrthogonalScrollingBehaviorNone;
460461

461462
IBPNSCollectionLayoutSize *orthogonalGroupSize = section.group.layoutSize;
@@ -487,15 +488,6 @@ - (UICollectionView *)setupOrthogonalScrollViewForSection:(IBPNSCollectionLayout
487488
configuration:configuration];
488489
collectionViewLayout.parent = self;
489490
collectionViewLayout.containerSection = section;
490-
491-
NSDictionary *decorationClassDict = @{};
492-
@try {
493-
decorationClassDict = [[self valueForKey:@"_decorationViewClassDict"] copy];
494-
} @catch (NSException *exception) {}
495-
for (NSString *reuseIdentifier in decorationClassDict) {
496-
Class cellClass = decorationClassDict[reuseIdentifier];
497-
[collectionViewLayout registerClass:cellClass forDecorationViewOfKind:reuseIdentifier];
498-
}
499491

500492
IBPCollectionViewOrthogonalScrollerEmbeddedScrollView *scrollView = [[IBPCollectionViewOrthogonalScrollerEmbeddedScrollView alloc] initWithFrame:CGRectZero
501493
collectionViewLayout:collectionViewLayout];

0 commit comments

Comments
 (0)