[![CI Status](http://img.shields.io/travis/Millman YANG/MMParallaxCollectionView.svg?style=flat)](https://travis-ci.org/Millman YANG/MMParallaxCollectionView)
1.Parallax
2.front
3.rear
To run the example project, clone the repo, and run pod install
from the Example directory first.
iOS 8.0+
Xcode 8.0+
Swift 3.0+
Step:
1.set your headerStyle
public enum HeaderStyle {
case rear
case front
case normal
}
collectionVIew.setHeaderStyle(style: .front)
2.Parallax
collectionView.addParallax(view: yourView,height: 180)
3."UICollectionReusableView" need to inherit MMHeaderReuseView
class HeaderTitleView: MMHeaderReuseView {
}
4.Control yourself is show the bar
collectionView.showNavigationBar(isShow: false, animated: false)
5.get navigation hiding Rate(Ex.This function can help you hide the item on the navigation Bar)
collection.getNavigationRate { (rate) in
self.titleView.alpha = rate
}
MMParallaxCollectionView is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "MMParallaxCollectionView"
Millman YANG, millmanyang@gmail.com
MMParallaxCollectionView is available under the MIT license. See the LICENSE file for more info.