Commit 6c33811f by Daniel Dahan

minor updates on ordering for bottomNavigationBar

parent 6251dcdc
...@@ -61,7 +61,6 @@ class AppNavigationController: NavigationController { ...@@ -61,7 +61,6 @@ class AppNavigationController: NavigationController {
/// Prepares the navigationBar /// Prepares the navigationBar
private func prepareNavigationBar() { private func prepareNavigationBar() {
navigationBar.tintColor = MaterialColor.white
navigationBar.backgroundColor = MaterialColor.blue.base navigationBar.backgroundColor = MaterialColor.blue.base
} }
} }
...@@ -108,7 +108,7 @@ class RecipesViewController: UIViewController { ...@@ -108,7 +108,7 @@ class RecipesViewController: UIViewController {
let vc: AppSearchBarController = AppSearchBarController(rootViewController: RecommendationViewController(dataSourceItems: recommended)) let vc: AppSearchBarController = AppSearchBarController(rootViewController: RecommendationViewController(dataSourceItems: recommended))
vc.modalTransitionStyle = .CrossDissolve vc.modalTransitionStyle = .CrossDissolve
navigationController?.presentViewController(vc, animated: true, completion: nil) presentViewController(vc, animated: true, completion: nil)
} }
/// Prepares the items Array. /// Prepares the items Array.
......
...@@ -143,8 +143,9 @@ public class BottomNavigationController : UITabBarController, UITabBarController ...@@ -143,8 +143,9 @@ public class BottomNavigationController : UITabBarController, UITabBarController
/// Prepares the tabBar. /// Prepares the tabBar.
private func prepareTabBar() { private func prepareTabBar() {
tabBar.depth = .Depth1 tabBar.depth = .Depth1
let image: UIImage? = UIImage.imageWithColor(MaterialColor.clear, size: CGSizeMake(1, 1))
tabBar.shadowImage = image
tabBar.backgroundImage = image
tabBar.backgroundColor = MaterialColor.white tabBar.backgroundColor = MaterialColor.white
tabBar.shadowImage = UIImage.imageWithColor(MaterialColor.clear, size: CGSizeMake(1, 1))
tabBar.backgroundImage = 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