From 73ec0ce12e46cff01bff1e9c70f3033b6d5aa43f Mon Sep 17 00:00:00 2001 From: Yu Sung Date: Thu, 11 Sep 2025 19:27:23 +0900 Subject: [PATCH] =?UTF-8?q?feat(main):=20=ED=95=98=EB=8B=A8=20=ED=83=AD=20?= =?UTF-8?q?=EC=88=9C=EC=84=9C=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Sources/Main/Home/BottomTabView.swift | 50 +++++++++---------- SodaLive/Sources/Main/Home/HomeView.swift | 8 +-- 2 files changed, 29 insertions(+), 29 deletions(-) diff --git a/SodaLive/Sources/Main/Home/BottomTabView.swift b/SodaLive/Sources/Main/Home/BottomTabView.swift index 2af95c1..765fab8 100644 --- a/SodaLive/Sources/Main/Home/BottomTabView.swift +++ b/SodaLive/Sources/Main/Home/BottomTabView.swift @@ -40,31 +40,6 @@ struct BottomTabView: View { width: tabWidth ) - TabButton( - title: "채팅", - action: { - if currentTab != .chat { - currentTab = .chat - } - }, - image: { - currentTab == .chat ? - "ic_chat_selected" : - "ic_chat" - }, - fontName: { - currentTab == .chat ? - Font.bold.rawValue : - Font.medium.rawValue - }, - color: { - currentTab == .chat ? - Color.button : - Color.graybb - }, - width: tabWidth - ) - TabButton( title: "라이브", action: { @@ -90,6 +65,31 @@ struct BottomTabView: View { width: tabWidth ) + TabButton( + title: "채팅", + action: { + if currentTab != .chat { + currentTab = .chat + } + }, + image: { + currentTab == .chat ? + "ic_chat_selected" : + "ic_chat" + }, + fontName: { + currentTab == .chat ? + Font.bold.rawValue : + Font.medium.rawValue + }, + color: { + currentTab == .chat ? + Color.button : + Color.graybb + }, + width: tabWidth + ) + TabButton( title: "마이", action: { diff --git a/SodaLive/Sources/Main/Home/HomeView.swift b/SodaLive/Sources/Main/Home/HomeView.swift index 502f58a..fd7cd6b 100644 --- a/SodaLive/Sources/Main/Home/HomeView.swift +++ b/SodaLive/Sources/Main/Home/HomeView.swift @@ -33,14 +33,14 @@ struct HomeView: View { .frame(width: viewModel.currentTab == .home ? proxy.size.width : 0) .opacity(viewModel.currentTab == .home ? 1.0 : 0.01) - chatTabView - .frame(width: viewModel.currentTab == .chat ? proxy.size.width : 0) - .opacity(viewModel.currentTab == .chat ? 1.0 : 0.01) - liveView .frame(width: viewModel.currentTab == .live ? proxy.size.width : 0) .opacity(viewModel.currentTab == .live ? 1.0 : 0.01) + chatTabView + .frame(width: viewModel.currentTab == .chat ? proxy.size.width : 0) + .opacity(viewModel.currentTab == .chat ? 1.0 : 0.01) + if viewModel.currentTab == .mypage { MyPageView() }