File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed
Fitfty/Projects/Common/Sources Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -14,5 +14,8 @@ public final class AppAppearance {
1414 UINavigationBar . appearance ( ) . largeTitleTextAttributes = [ . foregroundColor: UIColor . label]
1515 UINavigationBar . appearance ( ) . titleTextAttributes = [ . foregroundColor: UIColor . label]
1616 UINavigationBar . appearance ( ) . barTintColor = . white
17+ UITabBar . appearance ( ) . shadowImage = UIImage ( )
18+ UITabBar . appearance ( ) . backgroundImage = UIImage ( )
19+ UITabBar . appearance ( ) . backgroundColor = UIColor . white
1720 }
1821}
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ public final class TabBarController: UITabBarController {
1313 public init ( ) {
1414 super. init ( nibName: nil , bundle: nil )
1515 object_setClass ( self . tabBar, TabBar . self)
16- self . tabBar . backgroundColor = . white
16+ applyShadow ( )
1717 }
1818
1919 required init ? ( coder: NSCoder ) {
@@ -27,4 +27,11 @@ public final class TabBarController: UITabBarController {
2727 }
2828 }
2929
30+ private func applyShadow( ) {
31+ tabBar. layer. shadowColor = UIColor . black. cgColor
32+ tabBar. layer. shadowOpacity = 0.3
33+ tabBar. layer. shadowOffset = CGSize ( width: 0 , height: 0 )
34+ tabBar. layer. shadowRadius = 0.33
35+ }
36+
3037}
You canβt perform that action at this time.
0 commit comments