Closed Wizzel1 closed 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
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.
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.
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
`
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.