TabPageViewController
TabPageViewController copied to clipboard
Can't set different background color in NavigationBar and TabBar
I want to set different background color in NavigationBar and TabBar. However, I can't since NavigationBar background is set in this method. https://github.com/EndouMari/TabPageViewController/blob/master/Pod/Classes/TabPageViewController.swift#L123
I think NavigationBar background setting should not be done in TabPageViewController.
Have any solution to this?
Thanks for opening the issue!
I'm still thinking of a solution. The Problem is the NavigationBar's 1 px line stands out, so I am not sure how to deal with that for the time being. It's difficult to remove the 1px line, but if you know a way to fix that issue please feel free to send a pull request!
In the meantime I will think of a solution, thanks!
Hi EndouMari, How I can custom Navigation Bar 's appearance? I dont want to change in source code file. Maybe you should to stop updateNavigation() and The NavigationBar's 1 px is handle outside your source.
I think @kaka09 was right. For me, I need 1px shadow of NavigationBar. So, I must use my own forked version.
I see this problem too. This occur because author always setup tabBackgroundImage that overlay navigationBar background color example_image Author setup same color for statusBar + navigationBar + tabBar at the same time I think author should have one more option to use tabBackgroundImage or not.
You can delete this code: navigationBar.setBackgroundImage(option.tabBackgroundImage, for: .default)
on line 135 in file TabPageViewController.swift ))