Latest 1.0.1
Homepage https://github.com/dominicmdev/DMParallaxHeader
License MIT
Platforms ios 10.0, requires ARC
Authors ,

Version
License
Platform

DMParallaxHeader is a Swift conversion from https://github.com/maxep/MXParallaxHeader.

Usage

If you want to try it, simply run:

pod try DMParallaxHeader
  • Adding a parallax header to a UIScrollView is straightforward, e.g:
let headerView = UIImageView(frame: imageFrame)
headerView.image = UIImage(named:"success-baby")
headerView.contentMode = .scaleAspectFill

let scrollView = UIScrollView(frame: frame) 
scrollView.parallaxHeader.view = headerView
scrollView.parallaxHeader.height = 150
scrollView.parallaxHeader.mode = .fill
scrollView.parallaxHeader.minimumHeight = 20
  • The DMScrollViewController is a container with a child view controller that can be added programmatically or using the custom segue DMScrollViewControllerSegue.

  • Please check examples for Swift implementations.

Installation

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

pod "DMParallaxHeader"

License

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

Latest podspec

{
    "name": "DMParallaxHeader",
    "version": "1.0.1",
    "swift_version": "4.0",
    "summary": "Simple parallax header for UIScrollView.",
    "description": "A Swift conversion from https://github.com/maxep/MXParallaxHeader.",
    "homepage": "https://github.com/dominicmdev/DMParallaxHeader",
    "license": "MIT",
    "authors": {
        "Dominic Miller": "[email protected]",
        "Maxime Epain": "[email protected]"
    },
    "source": {
        "git": "https://github.com/dominicmdev/DMParallaxHeader.git",
        "tag": "1.0.1"
    },
    "platforms": {
        "ios": "10.0"
    },
    "requires_arc": true,
    "source_files": "DMParallaxHeader/*.swift"
}

Pin It on Pinterest

Share This