MMParallaxCollectionView
MMParallaxCollectionView copied to clipboard
Custom CollectionView with Parallax effect
MMParallaxCollectionView
[](https://travis-ci.org/Millman YANG/MMParallaxCollectionView)
Demo
1.Parallax

2.front

3.rear

Example
To run the example project, clone the repo, and run pod install from the Example directory first.
Requirements
iOS 8.0+
Xcode 8.0+
Swift 3.0+
Use
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
}
Installation
MMParallaxCollectionView is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "MMParallaxCollectionView"
Author
Millman YANG, [email protected]
License
MMParallaxCollectionView is available under the MIT license. See the LICENSE file for more info.