Retain Navigation Bar Appearance
Closed this issue · 1 comments
PedroCavaleiro commented
Following the Demo I was able to implement the TabPageViewController, but I would like to retain the system appearance of the nav bar (including the tab)
This is what I got so far but I don't think it matches the default system appearance
class TabPageViewController: TabPageViewController {
override init() {
super.init()
// Configure the navigation bar
/// Should I even need this?
let appearance = UINavigationBarAppearance()
appearance.configureWithTransparentBackground()
navigationController?.navigationBar.standardAppearance = appearance
// configure the VCs
// [...]
option.isTranslucent = true
option.tabBackgroundColor = UIColor.clear
option.currentColor = UIColor(named: "AccentColor")!
}
}
Any nudge in the correct direction?
PedroCavaleiro commented
Closing due to no response