feat(main): 메인 탭 화면을 추가한다

This commit is contained in:
Yu Sung
2026-05-19 15:54:37 +09:00
parent 270332d7c4
commit 1a5df53edb
26 changed files with 1580 additions and 2 deletions

View File

@@ -0,0 +1,52 @@
//
// MainTab.swift
// SodaLive
//
import Foundation
enum MainTab: CaseIterable, Hashable {
case home
case content
case chat
case my
var title: String {
switch self {
case .home:
return I18n.Main.Tab.home
case .content:
return I18n.Main.Tab.content
case .chat:
return I18n.Main.Tab.chat
case .my:
return I18n.Main.Tab.my
}
}
var selectedIconName: String {
switch self {
case .home:
return "ic_nav_home_selected"
case .content:
return "ic_nav_content_selected"
case .chat:
return "ic_nav_chat_selected"
case .my:
return "ic_tabbar_my_selected"
}
}
var unselectedIconName: String {
switch self {
case .home:
return "ic_nav_home"
case .content:
return "ic_nav_content"
case .chat:
return "ic_nav_chat"
case .my:
return "ic_nav_my"
}
}
}