maxep / MXParallaxHeader

Simple parallax header for UIScrollView
MIT License
1.73k stars 251 forks source link

Implementation interferes with navbar customization #104

Closed Wizzel1 closed 5 years ago

Wizzel1 commented 5 years ago

Hi, i want to customize my navbar but for some reason, its not possible when the MXParallaxHeader is implemented.

I want the navbar to be translucent. So after i call ` recipeImageView.contentMode = .scaleAspectFill

detailsScrollView.parallaxHeader.view = recipeImageView
detailsScrollView.parallaxHeader.height = 330
detailsScrollView.parallaxHeader.mode = .fill
detailsScrollView.parallaxHeader.minimumHeight = 0

`

i call this method self.navigationController?.navigationBar.setBackgroundImage(UIImage(), for: UIBarMetrics.default) self.navigationController?.navigationBar.shadowImage = UIImage() self.navigationController?.navigationBar.isTranslucent = true self.navigationController?.view.backgroundColor = UIColor.clear self.navigationController?.navigationBar.backgroundColor = UIColor.clear

but the second method does not seem to have any effect.

stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.