Skip to content
This repository has been archived by the owner on Sep 17, 2020. It is now read-only.

Deprecated - Use UICollectionViewFlowLayout to implement Parallax on cells in UICollectionView

Notifications You must be signed in to change notification settings

BramYeh/ParallaxCollectionViewFlowLayout

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 

Repository files navigation

@Deprecated ParallaxCollectionViewFlowLayout

Use UICollectionViewFlowLayout to implement Parallax on cells in UICollectionView

  • ParallaxCollectionViewFlowLayout inherited from UICollectionViewFlowLayout and could be applied into UICollectionView
  • It overrides layoutAttributesForElementsInRect: method to calculate the layout attributes of cells which you want to do parallax
  • It needs to define cells which should do parallax by enableParallaxCellsAtIndexPaths: or set allCellParallax YES for all
  • Set CollectionView's FlowLayout being ParallaxCollectionViewFlowLayout at Interface Builder
  • Set which components you want to do parallax by ParallaxCollectionViewFlowLayout *flowlayout = self.collectionView.collectionViewLayout; flowlayout.allCellParallax = YES;

About

Deprecated - Use UICollectionViewFlowLayout to implement Parallax on cells in UICollectionView

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published