sapandang / MYNStickyFlowLayout

Drop-in sticky headers and footers for UICollectionView.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MYNStickyFlowLayout

Drop-in sticky headers and footers for UICollectionView.

Demo screen recording gif animation

Installation

MYNStickyFlowLayout is available through CocoaPods, to install it simply add the following line to your Podfile:

pod 'MYNStickyFlowLayout'

Alternatively, you can just drag the files from MYNStickyFlowLayout / Classes into your own project.

Usage

To run the example project; clone the repo, and run MYNStickFlowLayout.xcworkspace from the Example directory.

Configure your collection view layout to use MYNStickyFlowLayout. Here's an example on how you to do it in Storyboard.

How to add to Storyboard image

Now all your section headers and footers will get the sticky effect like table view.

Inspiration

Draws heavy inspiration from CSStickyHeaderFlowLayout written by James Tang.

Author

Param Aggarwal, paramaggarwal@gmail.com

License

MYNStickyFlowLayout is available under the MIT license.

About

Drop-in sticky headers and footers for UICollectionView.

License:MIT License


Languages

Language:Objective-C 66.4%Language:Shell 20.2%Language:Ruby 10.8%Language:C 2.6%