Commit 862927ac by Daniel Dahan

updated BottomNavigationController to show divider line at top in initial setup

parent 122e7e5f
...@@ -130,19 +130,20 @@ open class BottomNavigationController: UITabBarController { ...@@ -130,19 +130,20 @@ open class BottomNavigationController: UITabBarController {
when subclassing. when subclassing.
*/ */
open func prepare() { open func prepare() {
view.backgroundColor = .white
view.clipsToBounds = true view.clipsToBounds = true
view.contentScaleFactor = Screen.scale view.backgroundColor = .white
view.contentScaleFactor = Screen.scale
prepareTabBar() prepareTabBar()
} }
} }
extension BottomNavigationController { fileprivate extension BottomNavigationController {
/// Prepares the tabBar. /// Prepares the tabBar.
fileprivate func prepareTabBar() { func prepareTabBar() {
tabBar.isTranslucent = false tabBar.isTranslucent = false
tabBar.heightPreset = .normal tabBar.heightPreset = .normal
tabBar.depthPreset = .depth1 tabBar.dividerColor = Color.grey.lighten3
tabBar.dividerAlignment = .top tabBar.dividerAlignment = .top
let image = UIImage() let image = UIImage()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment