目录

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
邀请码
    Gitlink(确实开源)
  • 加入我们
  • 官网邮箱:gitlink@ccf.org.cn
  • QQ群
  • QQ群
  • 公众号
  • 公众号

版权所有:中国计算机学会技术支持:开源发展技术委员会
京ICP备13000930号-9 京公网安备 11010802032778号