Skip to content

Commit 4f89148

Browse files
committed
feat: navigationController appearance 수정
1 parent 464b191 commit 4f89148

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,13 @@ 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+
1320
switch navigationStyle {
1421
case .hidden:
1522
navigationController?.setNavigationBarHidden(true, animated: false)

0 commit comments

Comments
 (0)