라이브 메인 - 메시지 탭 보이도록 수정
This commit is contained in:
parent
8b7f3fbd07
commit
0daf638b68
|
@ -9,22 +9,12 @@ import SwiftUI
|
|||
|
||||
struct BottomTabView: View {
|
||||
let width: CGFloat
|
||||
let tabWidth: CGFloat
|
||||
@Binding var currentTab: HomeViewModel.CurrentTab
|
||||
|
||||
init(width: CGFloat, currentTab: Binding<HomeViewModel.CurrentTab>) {
|
||||
self.width = width
|
||||
self._currentTab = currentTab
|
||||
|
||||
if UserDefaults.bool(forKey: .auth) {
|
||||
tabWidth = width / 5
|
||||
} else {
|
||||
tabWidth = width / 4
|
||||
}
|
||||
}
|
||||
|
||||
var body: some View {
|
||||
HStack(spacing: 0) {
|
||||
let tabWidth = width / 5
|
||||
|
||||
TabButton(
|
||||
title: "콘텐츠",
|
||||
action: {
|
||||
|
@ -100,7 +90,6 @@ struct BottomTabView: View {
|
|||
width: tabWidth
|
||||
)
|
||||
|
||||
if UserDefaults.bool(forKey: .auth) {
|
||||
TabButton(
|
||||
title: "메시지",
|
||||
action: {
|
||||
|
@ -125,7 +114,6 @@ struct BottomTabView: View {
|
|||
},
|
||||
width: tabWidth
|
||||
)
|
||||
}
|
||||
|
||||
TabButton(
|
||||
title: "마이",
|
||||
|
|
Loading…
Reference in New Issue