ngochiencse / hpparallaxheader Goto Github PK
View Code? Open in Web Editor NEWSimple parallax header for UIScrollView.
License: MIT License
Simple parallax header for UIScrollView.
License: MIT License
It can't access scrollView
extension HeaderViewController: HPParallaxHeaderDelegate {
func parallaxHeaderDidScroll(_ parallaxHeader: HPParallaxHeader) {
// can't access scrollView
if let scrollView = parallaxHeader.scrollView {
trackingOffset(scrollView)
}
}
'scrollView' is inaccessible due to 'internal' protection level
final class MyContainerViewController: HPScrollViewController {
override var preferredStatusBarStyle : UIStatusBarStyle {
return UIStatusBarStyle.lightContent
}
override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)
if #available(iOS 13.0, *) {
let appearance = UINavigationBarAppearance()
appearance.configureWithTransparentBackground()
appearance.titleTextAttributes = [.foregroundColor: UIColor.white]
appearance.backgroundColor = UIColor(red: 0.0/255.0, green: 123.0/255.0, blue: 187.0/255.0, alpha: 1.0)
navigationController?.navigationBar.scrollEdgeAppearance = appearance
navigationController?.navigationBar.standardAppearance = appearance
}
}
it can't mack white header under clock.
Or I want the option for it.
parallaxHeaderDidScroll
method return strange values even before my scrolling.(when initialized?)
func parallaxHeaderDidScroll(_ parallaxHeader: HPParallaxHeader) {
var progress = parallaxHeader.progress
print(progress)
}
In the first loaded view controller.
it logged 1
, 0
before scrolling.
I think there are many MXParallaxHeader
users.
I hope migration from Objective-C to Swift version.
HPScrollViewController's viewDidLoad()
can't override in inherited class
Could you append scrollViewDidScroll
for HPScrollViewDelegate?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.