Skip to content

kncgs/CollectionViewHoverHeaderFooter

Repository files navigation

CollectionViewHoverHeaderFooter

like tableview plain style

a demo for my blog 17_02_24

iOS9 之后只需要设置两个属性便可以实现 UICollectionView section header 或 footer 悬停效果。

let layout = UICollectionViewFlowLayout()
layout.sectionHeadersPinToVisibleBounds = true
layout.sectionFootersPinToVisibleBounds = true
// ...

collectionview