마이페이지

- 내 보관함 이동 버튼 추가
This commit is contained in:
Yu Sung
2025-01-08 01:40:41 +09:00
parent d060b8620a
commit 6c0ea9595c
9 changed files with 65 additions and 34 deletions

View File

@@ -17,6 +17,8 @@ struct ContentBoxView: View {
@State private var selectedPlaylistId = 0
let initCurrentTab: ContentBoxViewModel.CurrentTab
var body: some View {
ZStack {
NavigationView {
@@ -71,6 +73,9 @@ struct ContentBoxView: View {
OrderListAllInnerView()
}
}
.onAppear {
viewModel.currentTab = initCurrentTab
}
}
if isShowCreatePlaylist {
@@ -92,5 +97,5 @@ struct ContentBoxView: View {
}
#Preview {
ContentBoxView()
ContentBoxView(initCurrentTab: .orderlist)
}

View File

@@ -26,7 +26,7 @@ struct ContentMainView: View {
Image("ic_content_keep")
.onTapGesture {
AppState.shared.setAppStep(step: .myBox)
AppState.shared.setAppStep(step: .myBox(currentTab: .orderlist))
}
}
.padding(.bottom, 26.7)