parent
169765b867
commit
8f6bd8fabe
|
@ -16,6 +16,7 @@ struct UserProfileView: View {
|
||||||
@State private var isShowMemberProfilePopup: Bool = false
|
@State private var isShowMemberProfilePopup: Bool = false
|
||||||
@State private var isShowFollowNotifyDialog: Bool = false
|
@State private var isShowFollowNotifyDialog: Bool = false
|
||||||
@State private var isShowRouletteSettings: Bool = false
|
@State private var isShowRouletteSettings: Bool = false
|
||||||
|
@State private var isShowMenuSettings: Bool = false
|
||||||
|
|
||||||
var body: some View {
|
var body: some View {
|
||||||
GeometryReader { proxy in
|
GeometryReader { proxy in
|
||||||
|
@ -148,6 +149,15 @@ struct UserProfileView: View {
|
||||||
.background(Color.button)
|
.background(Color.button)
|
||||||
.cornerRadius(5.3)
|
.cornerRadius(5.3)
|
||||||
.onTapGesture { isShowRouletteSettings = true }
|
.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
|
viewModel.isShowPopup = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if isShowMenuSettings {
|
||||||
|
MenuSettingsView(isShowing: $isShowMenuSettings)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.sheet(
|
.sheet(
|
||||||
isPresented: $viewModel.isShowShareView,
|
isPresented: $viewModel.isShowShareView,
|
||||||
|
|
|
@ -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))
|
||||||
|
}
|
|
@ -0,0 +1,12 @@
|
||||||
|
//
|
||||||
|
// MenuSettingsViewModel.swift
|
||||||
|
// SodaLive
|
||||||
|
//
|
||||||
|
// Created by klaus on 10/7/24.
|
||||||
|
//
|
||||||
|
|
||||||
|
import Foundation
|
||||||
|
|
||||||
|
final class MenuSettingsViewModel: ObservableObject {
|
||||||
|
@Published var isLoading = false
|
||||||
|
}
|
Loading…
Reference in New Issue