Swift Package Index


A high-performance flow layout that provides global headers, footers, section backgrounds and various configurations.


  • The latest stable release is 2.0.0. Released over 1 year ago.
  • The last commit to master was over 1 year ago.

Swift Version Compatibility

  • 2.0.0 and master
    5.3
    5.2
    5.1
    5.0
    4.2
Full build results

Platform Compatibility

  • 2.0.0 and master
    iOS
    macOS(Intel)
    macOS(ARM)
    Linux
    tvOS
    watchOS
Full build results

FlowLayout

A high-performance flow layout that provides global headers, footers, section backgrounds and various configurations.

Checkout FlowLayoutDemo for a Demo project.

Changelog

Release 2.0.0

FlowLayoutDelegate has completely new function signatures, so please ensure you've updated all of your implementations to use the correct signature otherwise your layout will not behave correctly.

Added

// Replaces `backgroundLayoutRegion(in:forSectionAt: Int) -> LayoutRegion`
func collectionView(_ collectionView: UICollectionView,
    layout: UICollectionViewLayout,
    regionForBackgroundInSection section: Int) -> LayoutRegion
    
// Replaces `backgroundLayoutInsets(in:forSectionAt: Int) -> UIEdgeInsets` 
func collectionView(_ collectionView: UICollectionView,
    layout: UICollectionViewLayout,
    insetsForBackgroundInSection section: Int) -> UIEdgeInsets
    
// Allows you to 'align' cells within a specified section
func collectionView(_ collectionView: UICollectionView,
    layout: UICollectionViewLayout,
    alignmentInSection section: Int) -> LayoutAlignment

Deprecated

func backgroundLayoutRegion(in:forSectionAt: Int) -> LayoutRegion
func backgroundLayoutInsets(in:forSectionAt: Int) -> UIEdgeInsets