HPParallaxHeader is a simple header class for UIScrollView.
In addition, HPScrollView 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, HPScrollViewController allows you to add a HPParallaxHeader to any kind of UIViewController.
UIScrollView
HPScrollViewController
Usage
If you want to try it, simply run:
pod try HPParallaxHeader
Adding a parallax header to a UIScrollView is straightforward, e.g:
The HPScrollViewController is a container with a child view controller that can be added programmatically or using the custom segue HPScrollViewControllerSegue.
Installation
Swift Package Manager
You can use Swift Package Manager directly within Xcode or add it to the dependencies value of your Package.swift.
HPParallaxHeader
HPParallaxHeader is a Swift conversion from https://github.com/maxep/MXParallaxHeader.
HPParallaxHeader is a simple header class for UIScrollView.
In addition, HPScrollView 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, HPScrollViewController allows you to add a HPParallaxHeader to any kind of UIViewController.
Usage
If you want to try it, simply run:
Installation
Swift Package Manager
You can use Swift Package Manager directly within Xcode or add it to the
dependencies
value of yourPackage.swift
.CocoaPods
HPParallaxHeader is available through CocoaPods. To install it, simply add the following line to your Podfile:
Documentation
Documentation is available through GitHub.
Author
Hien Pham
License
HPParallaxHeader is available under the MIT license. See the LICENSE file for more info.