@@ -36,9 +36,7 @@ final class NavigationController: UINavigationController {
3636 navigationBar. tintColor = . white
3737 navigationBar. barTintColor = . primaryColor
3838 navigationBar. titleTextAttributes = [ . foregroundColor: UIColor . white]
39- if #available( iOS 11 . 0 , * ) {
40- navigationBar. largeTitleTextAttributes = [ . foregroundColor: UIColor . white]
41- }
39+ navigationBar. largeTitleTextAttributes = [ . foregroundColor: UIColor . white]
4240 navigationBar. shadowImage = UIImage ( )
4341 navigationBar. setBackgroundImage ( UIImage ( ) , for: . default)
4442 view. backgroundColor = . primaryColor
@@ -50,17 +48,13 @@ final class NavigationController: UINavigationController {
5048 navigationBar. barTintColor = . primaryColor
5149 navigationBar. tintColor = . white
5250 navigationBar. titleTextAttributes = [ . foregroundColor: UIColor . white]
53- if #available( iOS 11 . 0 , * ) {
54- navigationBar. largeTitleTextAttributes = [ . foregroundColor: UIColor . white]
55- }
51+ navigationBar. largeTitleTextAttributes = [ . foregroundColor: UIColor . white]
5652 } else if style == . lightContent {
5753 navigationBar. shadowImage = nil
5854 navigationBar. barTintColor = . white
5955 navigationBar. tintColor = UIColor ( red: 0 , green: 0.5 , blue: 1 , alpha: 1 )
6056 navigationBar. titleTextAttributes = [ . foregroundColor: UIColor . black]
61- if #available( iOS 11 . 0 , * ) {
62- navigationBar. largeTitleTextAttributes = [ . foregroundColor: UIColor . black]
63- }
57+ navigationBar. largeTitleTextAttributes = [ . foregroundColor: UIColor . black]
6458 }
6559 }
6660
0 commit comments