Skip to content

Commit 03f40e2

Browse files
committed
Refactor: 코드 리뷰 반영
- 중복된 네비게이션 바 Appearance 설정 제거 - OnboardingView viewDidLoad 제거
1 parent 44d59bf commit 03f40e2

3 files changed

Lines changed: 1 addition & 11 deletions

File tree

Projects/Presentation/Sources/Common/Extension/UIViewController+.swift

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,6 @@ import UIKit
1010
extension UIViewController {
1111
// MARK: - NavigationBar
1212
func configureNavigationBar(navigationStyle: NavigationBarStyle) {
13-
let appearance = UINavigationBarAppearance()
14-
appearance.backgroundEffect = .none
15-
appearance.configureWithOpaqueBackground()
16-
appearance.shadowColor = .clear
17-
navigationController?.navigationBar.standardAppearance = appearance
18-
navigationController?.navigationBar.scrollEdgeAppearance = appearance
19-
2013
switch navigationStyle {
2114
case .hidden:
2215
navigationController?.setNavigationBarHidden(true, animated: false)

Projects/Presentation/Sources/Home/View/HomeView.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ final class HomeView: BaseViewController<HomeViewModel> {
102102

103103
override func viewWillAppear(_ animated: Bool) {
104104
super.viewWillAppear(animated)
105+
configureNavigationBar(navigationStyle: .hidden)
105106
viewModel.action(input: .fetchEmotion)
106107
}
107108

Projects/Presentation/Sources/Onboarding/View/OnboardingView.swift

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,6 @@ public final class OnboardingView: BaseViewController<OnboardingViewModel> {
5353
fatalError("init(coder:) has not been implemented")
5454
}
5555

56-
public override func viewDidLoad() {
57-
super.viewDidLoad()
58-
}
59-
6056
public override func viewWillAppear(_ animated: Bool) {
6157
super.viewWillAppear(animated)
6258

0 commit comments

Comments
 (0)