diff --git a/SodaLive/Sources/Main/Home/BottomTabView.swift b/SodaLive/Sources/Main/Home/BottomTabView.swift index eb324f1..9d1031d 100644 --- a/SodaLive/Sources/Main/Home/BottomTabView.swift +++ b/SodaLive/Sources/Main/Home/BottomTabView.swift @@ -15,31 +15,6 @@ struct BottomTabView: View { HStack(spacing: 0) { let tabWidth = width / 5 - TabButton( - title: "라이브", - action: { - if currentTab != .live { - currentTab = .live - } - }, - image: { - currentTab == .live ? - "ic_tabbar_live_selected" : - "ic_tabbar_live_normal" - }, - fontName: { - currentTab == .live ? - Font.bold.rawValue : - Font.medium.rawValue - }, - color: { - currentTab == .live ? - Color(hex: "9970ff") : - Color(hex: "909090") - }, - width: tabWidth - ) - TabButton( title: "콘텐츠", action: { @@ -65,6 +40,31 @@ struct BottomTabView: View { width: tabWidth ) + TabButton( + title: "라이브", + action: { + if currentTab != .live { + currentTab = .live + } + }, + image: { + currentTab == .live ? + "ic_tabbar_live_selected" : + "ic_tabbar_live_normal" + }, + fontName: { + currentTab == .live ? + Font.bold.rawValue : + Font.medium.rawValue + }, + color: { + currentTab == .live ? + Color(hex: "9970ff") : + Color(hex: "909090") + }, + width: tabWidth + ) + TabButton( title: "탐색", action: { diff --git a/SodaLive/Sources/Main/Home/HomeViewModel.swift b/SodaLive/Sources/Main/Home/HomeViewModel.swift index 0515dc6..7d5c444 100644 --- a/SodaLive/Sources/Main/Home/HomeViewModel.swift +++ b/SodaLive/Sources/Main/Home/HomeViewModel.swift @@ -19,7 +19,7 @@ final class HomeViewModel: ObservableObject { case content, live, explorer, message, mypage } - @Published var currentTab: CurrentTab = .live + @Published var currentTab: CurrentTab = .content func pushTokenUpdate(pushToken: String) { userRepository.updatePushToken(pushToken: pushToken)