Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

On toggle NavigationController's navigation bar(show/hide) the problems with back button and its tint color #1182

Closed
MuhammadNayabButt opened this issue Oct 25, 2018 · 2 comments

Comments

@MuhammadNayabButt
Copy link

On previous screens I have hidden the navigation controller. When I come to the required viewcontroller I unhide/show the view controller using this command

self.navigationController?.setNavigationBarHidden(false, animated: true)

strangely after unhiding the navigation controller not even backbutton hides properly neither its tint changes.
like following two lines of code does not have any effect. I get the back button in only blue colour

navigationItem.backButton.isHidden = true
navigationItem.backButton.tintColor = UIColor.black

it seems there is a problem with native navigationController although I am using only material navigation controller.

I have attached a sample project as well which can help you debug the issue
https://www.dropbox.com/s/wb5r7yk9hnwid1f/MaterialSample.zip?dl=0

@OrkhanAlikhanov
Copy link
Contributor

Fixed in #1183

@daniel-jonathan
Copy link
Member

Thank you @OrkhanAlikhanov, #1183 has been merged into development.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

3 participants