Files
sodalive-ios/SodaLive/Sources/V2/Main/MainTab.swift

53 lines
1.0 KiB
Swift

//
// 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_nav_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"
}
}
}