ngochiencse/hpparallaxheader
HPParallaxHeader is a Swift conversion from https://github.com/maxep/MXParallaxHeader.
Usage
If you want to try it, simply run:
pod try HPParallaxHeader- Adding a parallax header to a UIScrollView is straightforward, e.g:
let headerView = UIImageView()
headerView.image = UIImage(named: "success-baby")
headerView.contentMode = .scaleAspectFit
let scrollView = UIScrollView()
scrollView.parallaxHeader.view = headerView
scrollView.parallaxHeader.height = 150
scrollView.parallaxHeader.mode = .fill
scrollView.parallaxHeader.minimumHeight = 20- 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.
dependencies: [
.package(url: "https://github.com/ngochiencse/HPParallaxHeader", .upToNextMajor(from: "1.1.8"))
]CocoaPods
HPParallaxHeader is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "HPParallaxHeader"Documentation
Documentation is available through GitHub.
License
HPParallaxHeader is available under the MIT license. See the LICENSE file for more info.
Package Metadata
Repository: ngochiencse/hpparallaxheader
Default branch: master
README: README.md