Skip to content

Commit 9efbad6

Browse files
committed
🚚 [style] νƒ­λ°” 상단 ν…Œλ‘λ¦¬ μ»€μŠ€ν…€ μ„€μ •
1 parent a82d6dc commit 9efbad6

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

β€ŽFitfty/Projects/Common/Sources/AppAppearance.swiftβ€Ž

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff 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
}

β€ŽFitfty/Projects/Common/Sources/TabBarController.swiftβ€Ž

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
Β (0)