Skip to content

Commit 6b5c06f

Browse files
committed
refactor: NavigationBarConfigurator 기본 배경 통일
1 parent 24c1921 commit 6b5c06f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Application/DevLogPresentation/Sources/Common/NavigationBarConfigurator.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import DevLogDomain
1010

1111
/// NavigationBar의 배경색을 지정하고 shadowColor를 제거하는 구조체
1212
///
13-
/// 기본적으로 ``UIColor/systemBackground``를 배경색으로 사용하며,
13+
/// 기본적으로 ``UIColor/systemGroupedBackground``를 배경색으로 사용하며,
1414
/// 자체 `NavigationStack`을 가진 뷰에서는 `alwaysVisible`을 `true`로 설정하여
1515
/// 스크롤 위치와 관계없이 배경색이 항상 표시되도록 할 수 있다.
1616
struct NavigationBarConfigurator: UIViewControllerRepresentable {
@@ -20,7 +20,7 @@ struct NavigationBarConfigurator: UIViewControllerRepresentable {
2020
/// 지정된 배경색으로 Configurator를 생성한다.
2121
///
2222
/// - Parameter backgroundColor: NavigationBar에 적용할 배경색.
23-
init(_ backgroundColor: UIColor = .systemBackground) {
23+
init(_ backgroundColor: UIColor = .systemGroupedBackground) {
2424
self.backgroundColor = backgroundColor
2525
self.alwaysVisible = false
2626
}
@@ -32,7 +32,7 @@ struct NavigationBarConfigurator: UIViewControllerRepresentable {
3232
/// - alwaysVisible: `true`이면 스크롤 위치와 관계없이 배경색이 항상 표시된다.
3333
/// 자체 `NavigationStack`을 가진 뷰에서 사용한다.
3434
@available(iOS, deprecated: 18, message: "iOS 18 이상에서는 alwaysVisible 파라미터가 없는 생성자를 사용한다.")
35-
init(_ backgroundColor: UIColor = .systemBackground, alwaysVisible: Bool) {
35+
init(_ backgroundColor: UIColor = .systemGroupedBackground, alwaysVisible: Bool) {
3636
self.backgroundColor = backgroundColor
3737
if #available(iOS 18.0, *) {
3838
self.alwaysVisible = false

0 commit comments

Comments
 (0)