feat: 하단 탭 아이콘 변경

This commit is contained in:
Yu Sung
2025-07-10 19:18:50 +09:00
parent da3ca96960
commit fca5425e81
27 changed files with 248 additions and 66 deletions

View File

@@ -13,27 +13,27 @@ struct BottomTabView: View {
var body: some View {
HStack(spacing: 0) {
let tabWidth = width / 4
let tabWidth = width / 3
TabButton(
title: "콘텐츠",
title: "",
action: {
if currentTab != .content {
currentTab = .content
if currentTab != .home {
currentTab = .home
}
},
image: {
currentTab == .content ?
"ic_tabbar_content_selected" :
"ic_tabbar_content_normal"
currentTab == .home ?
"ic_home_selected" :
"ic_home"
},
fontName: {
currentTab == .content ?
currentTab == .home ?
Font.bold.rawValue :
Font.medium.rawValue
},
color: {
currentTab == .content ?
currentTab == .home ?
Color.button :
Color.graybb
},
@@ -49,8 +49,8 @@ struct BottomTabView: View {
},
image: {
currentTab == .live ?
"ic_tabbar_live_selected" :
"ic_tabbar_live_normal"
"ic_live_selected" :
"ic_live"
},
fontName: {
currentTab == .live ?
@@ -65,31 +65,6 @@ struct BottomTabView: View {
width: tabWidth
)
TabButton(
title: "오디션",
action: {
if currentTab != .audition {
currentTab = .audition
}
},
image: {
currentTab == .audition ?
"ic_tabbar_audition_selected" :
"ic_tabbar_audition_normal"
},
fontName: {
currentTab == .audition ?
Font.bold.rawValue :
Font.medium.rawValue
},
color: {
currentTab == .audition ?
Color.button :
Color.graybb
},
width: tabWidth
)
TabButton(
title: "마이",
action: {
@@ -99,8 +74,8 @@ struct BottomTabView: View {
},
image: {
currentTab == .mypage ?
"ic_tabbar_my_selected" :
"ic_tabbar_my_normal"
"ic_my_selected" :
"ic_my"
},
fontName: {
currentTab == .mypage ?