Latest 0.7.0
Homepage https://github.com/fcruzsbtv/MXParallaxHeader
License MIT
Platforms ios 7.0, requires ARC
Authors

MXParallaxHeader

CI Status
Version
Carthage compatible
License
Platform

MXParallaxHeader is a simple header class for UIScrolView.

In addition, MXScrollView is a UIScrollView subclass with the ability to hook the vertical scroll from its subviews, this can be used to add a parallax header to complex view hierachy. Moreover, MXScrollViewController allows you to add a MXParallaxHeader to any kind of UIViewController.

UIScrollView MXScrollViewController
Demo Demo

Usage

If you want to try it, simply run:

pod try MXParallaxHeader

Or clone the repo and run pod install from the Example directory first.

  • Adding a parallax header to a UIScrollView is straightforward, e.g:
UIImageView *headerView = [UIImageView new];
headerView.image = [UIImage imageNamed:@"success-baby"];
headerView.contentMode = UIViewContentModeScaleAspectFill;

UIScrollView *scrollView = [UIScrollView new]; 
scrollView.parallaxHeader.view = headerView;
scrollView.parallaxHeader.height = 150;
scrollView.parallaxHeader.mode = MXParallaxHeaderModeFill;
scrollView.parallaxHeader.minimumHeight = 20;
  • The MXScrollViewController is a container with a child view controller that can be added programmatically or using the custom segue MXScrollViewControllerSegue.

  • Please check examples for ObjC/Swift implementations.

Installation

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

pod "MXParallaxHeader"

Documentation

Documentation is available through CocoaDocs.

Author

Maxime Epain

Twitter

License

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

Latest podspec

{
    "name": "SBTVParallaxHeader",
    "version": "0.7.0",
    "summary": "Fork from MXParallaxHeader.",
    "description": "MXParallaxHeader is a simple header class for UIScrolView.nnIn addition, MXScrollView is a UIScrollView subclass with the ability to hook the vertical scroll from its subviews, this can be used to add a parallax header to complex view hierachy.nMoreover, MXScrollViewController allows you to add a MXParallaxHeader to any kind of UIViewController.",
    "homepage": "https://github.com/fcruzsbtv/MXParallaxHeader",
    "license": "MIT",
    "authors": {
        "Maxime Epain": "[email protected]"
    },
    "source": {
        "git": "https://github.com/fcruzsbtv/MXParallaxHeader.git",
        "tag": "0.7.0"
    },
    "platforms": {
        "ios": "7.0"
    },
    "requires_arc": true,
    "source_files": "MXParallaxHeader/*.{m,h}"
}

Pin It on Pinterest

Share This