LMCircularScrollingFlowLayout icon indicating copy to clipboard operation
LMCircularScrollingFlowLayout copied to clipboard

LMCircularScrollingFlowLayout is a UICollectionViewFlowLayout subclass that provides circular (wrapped, infinite) scrolling behavior in a UICollectionView.

LMCircularScrollingFlowLayout

CI Status Version License Platform

Usage

Just use in place of UICollectionViewFlowLayout. You can select it as the UICollectionViewFlowLayout subclass in interface builder.

Works fine with all the standard flow layout features, including multiple sections and multiple lines in a section. Works well with scrollview paging enabled or disabled. Tip: If you enable paging, enable Bounce as well.

NOTE: This layout hasn't been tested with some of the new auto-cell sizing features included with iOS 8.0 yet. If you try it out, I'd like to hear if it works or not.

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

iOS 7.0+

Installation

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

pod "LMCircularScrollingFlowLayout"

Author

cdann, [email protected]

License

LMCircularScrollingFlowLayout is available under the MIT license. See the LICENSE file for more info.