MMParallaxCollectionView 0.1.5

MMParallaxCollectionView 0.1.5

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Nov 2016
SwiftSwift Version 3.0-GM-CANDIDATE
SPMSupports SPM

Maintained by MM.



  • By
  • Millman YANG

Demo

1.Parallax

demo

2.front

demo

3.rear

demo

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.