File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
Sources/IBPCollectionViewCompositionalLayout Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -487,6 +487,15 @@ - (UICollectionView *)setupOrthogonalScrollViewForSection:(IBPNSCollectionLayout
487487 configuration: configuration];
488488 collectionViewLayout.parent = self;
489489 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+ }
490499
491500 IBPCollectionViewOrthogonalScrollerEmbeddedScrollView *scrollView = [[IBPCollectionViewOrthogonalScrollerEmbeddedScrollView alloc ] initWithFrame: CGRectZero
492501 collectionViewLayout: collectionViewLayout];
You can’t perform that action at this time.
0 commit comments