Latest 2.2.0
License MIT
Platforms ios 10.0, requires ARC
Authors ,

Swift 4.2

DMParallaxHeader is a Swift conversion from


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.


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

pod 'DMParallaxHeader'


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

Latest podspec

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

Pin It on Pinterest

Share This