From a73cafa08cd7122bee554c51fdda9a8e3c46e916 Mon Sep 17 00:00:00 2001 From: Yu Sung Date: Mon, 28 Jul 2025 20:24:28 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=EC=84=A4=EC=A0=95=20=ED=8E=98=EC=9D=B4?= =?UTF-8?q?=EC=A7=80=20-=20=EA=B3=B5=EC=A7=80=EC=82=AC=ED=95=AD,=20?= =?UTF-8?q?=EC=9D=B4=EB=B2=A4=ED=8A=B8=20=EB=A9=94=EB=89=B4=20=EC=A0=9C?= =?UTF-8?q?=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SodaLive/Sources/Settings/SettingsView.swift | 91 ++++++-------------- 1 file changed, 24 insertions(+), 67 deletions(-) diff --git a/SodaLive/Sources/Settings/SettingsView.swift b/SodaLive/Sources/Settings/SettingsView.swift index e816fd7..10003d1 100644 --- a/SodaLive/Sources/Settings/SettingsView.swift +++ b/SodaLive/Sources/Settings/SettingsView.swift @@ -24,50 +24,6 @@ struct SettingsView: View { ScrollView(.vertical, showsIndicators: false) { VStack(spacing: 0) { VStack(spacing: 0) { - HStack(spacing: 0) { - Text("공지사항") - .font(.custom(Font.bold.rawValue, size: 14.7)) - .foregroundColor(Color.grayee) - - Spacer() - - Image("ic_forward") - .resizable() - .frame(width: 20, height: 20) - } - .padding(.horizontal, 3.3) - .frame(width: cardWidth - 26.7, height: 50) - .contentShape(Rectangle()) - .onTapGesture { - AppState.shared.setAppStep(step: .notices) - } - - Rectangle() - .frame(width: cardWidth - 26.7, height: 0.3) - .foregroundColor(Color.gray90) - - HStack(spacing: 0) { - Text("이벤트") - .font(.custom(Font.bold.rawValue, size: 14.7)) - .foregroundColor(Color.grayee) - - Spacer() - - Image("ic_forward") - .resizable() - .frame(width: 20, height: 20) - } - .padding(.horizontal, 3.3) - .frame(width: cardWidth - 26.7, height: 50) - .contentShape(Rectangle()) - .onTapGesture { - AppState.shared.setAppStep(step: .events) - } - - Rectangle() - .frame(width: cardWidth - 26.7, height: 0.3) - .foregroundColor(Color.gray90) - HStack(spacing: 0) { Text("알림 설정") .font(.custom(Font.bold.rawValue, size: 14.7)) @@ -85,6 +41,30 @@ struct SettingsView: View { .onTapGesture { AppState.shared.setAppStep(step: .notificationSettings) } + + if UserDefaults.bool(forKey: .auth) { + Rectangle() + .frame(width: cardWidth - 26.7, height: 0.3) + .foregroundColor(Color.gray90) + + HStack(spacing: 0) { + Text("콘텐츠 보기 설정") + .font(.custom(Font.bold.rawValue, size: 14.7)) + .foregroundColor(Color.grayee) + + Spacer() + + Image("ic_forward") + .resizable() + .frame(width: 20, height: 20) + } + .padding(.horizontal, 3.3) + .frame(width: cardWidth - 26.7, height: 50) + .contentShape(Rectangle()) + .onTapGesture { + AppState.shared.setAppStep(step: .contentViewSettings) + } + } } .padding(.horizontal, 13.3) .frame(width: cardWidth) @@ -92,29 +72,6 @@ struct SettingsView: View { .cornerRadius(6.7) .padding(.top, 26.7) - if UserDefaults.bool(forKey: .auth) { - HStack(spacing: 0) { - Text("콘텐츠 보기 설정") - .font(.custom(Font.bold.rawValue, size: 14.7)) - .foregroundColor(Color.grayee) - - Spacer() - - Image("ic_forward") - .resizable() - .frame(width: 20, height: 20) - } - .padding(.horizontal, 16.7) - .frame(width: cardWidth, height: 50) - .background(Color.gray22) - .cornerRadius(6.7) - .contentShape(Rectangle()) - .padding(.top, 13.3) - .onTapGesture { - AppState.shared.setAppStep(step: .contentViewSettings) - } - } - VStack(spacing: 0) { HStack(spacing: 0) { Text("이용약관")