From 8f6bd8fabef4d91b81f2e4c380b62c55c425e708 Mon Sep 17 00:00:00 2001 From: Yu Sung Date: Mon, 7 Oct 2024 23:42:10 +0900 Subject: [PATCH] =?UTF-8?q?=ED=81=AC=EB=A6=AC=EC=97=90=EC=9D=B4=ED=84=B0?= =?UTF-8?q?=20=EC=B1=84=EB=84=90=20-=20=EB=A9=94=EB=89=B4=20=EC=84=A4?= =?UTF-8?q?=EC=A0=95=20=EB=B2=84=ED=8A=BC=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Explorer/Profile/UserProfileView.swift | 14 +++++++++ .../Live/Room/Menu/MenuSettingsView.swift | 31 +++++++++++++++++++ .../Room/Menu/MenuSettingsViewModel.swift | 12 +++++++ 3 files changed, 57 insertions(+) create mode 100644 SodaLive/Sources/Live/Room/Menu/MenuSettingsView.swift create mode 100644 SodaLive/Sources/Live/Room/Menu/MenuSettingsViewModel.swift diff --git a/SodaLive/Sources/Explorer/Profile/UserProfileView.swift b/SodaLive/Sources/Explorer/Profile/UserProfileView.swift index 04762b0..11486e6 100644 --- a/SodaLive/Sources/Explorer/Profile/UserProfileView.swift +++ b/SodaLive/Sources/Explorer/Profile/UserProfileView.swift @@ -16,6 +16,7 @@ struct UserProfileView: View { @State private var isShowMemberProfilePopup: Bool = false @State private var isShowFollowNotifyDialog: Bool = false @State private var isShowRouletteSettings: Bool = false + @State private var isShowMenuSettings: Bool = false var body: some View { GeometryReader { proxy in @@ -148,6 +149,15 @@ struct UserProfileView: View { .background(Color.button) .cornerRadius(5.3) .onTapGesture { isShowRouletteSettings = true } + + Text("메뉴 설정") + .font(.custom(Font.bold.rawValue, size: 15)) + .foregroundColor(Color.grayee) + .padding(.vertical, 17) + .frame(maxWidth: .infinity) + .background(Color.button) + .cornerRadius(5.3) + .onTapGesture { isShowMenuSettings = true } } } @@ -368,6 +378,10 @@ struct UserProfileView: View { viewModel.isShowPopup = true } } + + if isShowMenuSettings { + MenuSettingsView(isShowing: $isShowMenuSettings) + } } .sheet( isPresented: $viewModel.isShowShareView, diff --git a/SodaLive/Sources/Live/Room/Menu/MenuSettingsView.swift b/SodaLive/Sources/Live/Room/Menu/MenuSettingsView.swift new file mode 100644 index 0000000..bda1d77 --- /dev/null +++ b/SodaLive/Sources/Live/Room/Menu/MenuSettingsView.swift @@ -0,0 +1,31 @@ +// +// MenuSettingsView.swift +// SodaLive +// +// Created by klaus on 10/7/24. +// + +import SwiftUI + +struct MenuSettingsView: View { + + @StateObject var viewModel = MenuSettingsViewModel() + + @Binding var isShowing: Bool + + var body: some View { + BaseView(isLoading: $viewModel.isLoading) { + VStack(spacing: 0) { + DetailNavigationBar(title: "메뉴 설정") + + Text("메뉴 설정") + + Spacer() + } + } + } +} + +#Preview { + MenuSettingsView(isShowing: .constant(true)) +} diff --git a/SodaLive/Sources/Live/Room/Menu/MenuSettingsViewModel.swift b/SodaLive/Sources/Live/Room/Menu/MenuSettingsViewModel.swift new file mode 100644 index 0000000..831f865 --- /dev/null +++ b/SodaLive/Sources/Live/Room/Menu/MenuSettingsViewModel.swift @@ -0,0 +1,12 @@ +// +// MenuSettingsViewModel.swift +// SodaLive +// +// Created by klaus on 10/7/24. +// + +import Foundation + +final class MenuSettingsViewModel: ObservableObject { + @Published var isLoading = false +}