Skip to content

xuhongfei/HFCollectionViewAlignLeftFlowLayout

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HFCollectionViewAlignLeftFlowLayout

HFCollectionViewAlignLeftFlowLayout继承自UICollectionViewFlowLayout,用于实现Cells左对齐。采用swift实现,支持最新swift5。

example图片加载失败

使用方法

正如你使用UICollectionViewFlowLayout一样,使用HFCollectionViewAlignLeftFlowLayout来替代UICollectionViewFlowLayout即可:

let frame = CGRect.zero
let layout = HFCollectionViewAlignLeftFlowLayout()
let alignLeftCollectionView = UICollectionView(frame: frame, collectionViewLayout: layout)

License

HFCollectionViewAlignLeftFlowLayout is released under the MIT license.


@xuhongfei

Releases

No releases published

Packages

No packages published

Languages