JEKScrollableSectionCollectionViewLayout Versions Save

A UICollectionView flow layout with individually scrollable sections


3 years ago


4 years ago

This release exposes more stuff you can do with the internal scroll views that manages per-section scrolling. Previously, you could only enable and disable scroll indicators, but now all these settings are configurable:

  • bounces
  • alwaysBounceHorizontal
  • showsHorizontalScrollIndicator
  • scrollIndicatorInsets
  • indicatorStyle
  • decelerationRate
  • pagingEnabled
  • scrollEnabled

You can either change it for the whole layout by setting layout.defaultScrollViewConfiguration, or per section by implementing

- (nullable JEKScrollViewConfiguration *)collectionView:(UICollectionView *)collectionView layout:(JEKScrollableSectionCollectionViewLayout *)layout scrollViewConfigurationForSection:(NSUInteger)section;


4 years ago
  • Fixes section headers overlapping in empty sections #7


4 years ago
  • Adds support for background views per section, via collectionView:viewForSupplementaryElementOfKind:atIndexPath:
  • Adds a new protocol, JEKCollectionViewDelegateScrollableSectionLayout to observe scrolling per section