@@ -13,28 +13,15 @@ class TradeItYahooNavigationController: UINavigationController {
13
13
}
14
14
15
15
private func setupFuji( ) {
16
- self . navigationBar. barStyle = . black
17
- self . navigationBar. tintColor = . white
18
- let blankImage = UIImage ( )
19
- self . navigationBar. setBackgroundImage ( blankImage, for: . default)
20
- self . navigationBar. shadowImage = blankImage
16
+ self . navigationBar. isTranslucent = false
17
+ self . navigationBar. barTintColor = . white
18
+ self . navigationBar. tintColor = UIColor ( red: 24 / 255 , green: 143 / 255 , blue: 1 , alpha: 1 )
21
19
22
- let gradientView = TopGradientView ( frame: self . view. frame)
23
- addNavigationGradientView ( gradientView)
24
-
25
- let colorGradientView = LinearGradientView ( )
26
- addNavigationGradientView ( colorGradientView)
20
+ let textAttributes = [ NSAttributedStringKey . foregroundColor: UIColor . black]
21
+ self . navigationBar. titleTextAttributes = textAttributes
27
22
}
28
-
29
- private func addNavigationGradientView( _ subview: UIView ) {
30
- subview. translatesAutoresizingMaskIntoConstraints = false
31
- self . view. addSubview ( subview)
32
- self . view. sendSubviewToBack ( subview)
33
- self . view. addConstraints ( [
34
- subview. topAnchor. constraint ( equalTo: self . view. topAnchor) ,
35
- subview. widthAnchor. constraint ( equalTo: self . view. widthAnchor) ,
36
- subview. centerXAnchor. constraint ( equalTo: self . view. centerXAnchor) ,
37
- subview. heightAnchor. constraint ( equalToConstant: self . navigationBarHeight)
38
- ] )
23
+
24
+ override var preferredStatusBarStyle : UIStatusBarStyle {
25
+ return UIStatusBarStyle . default
39
26
}
40
27
}
0 commit comments