mirror of
https://github.com/yattee/yattee.git
synced 2026-02-20 01:39:46 +00:00
Yattee v2 rewrite
This commit is contained in:
33
Yattee/Models/Navigation/HomeTab.swift
Normal file
33
Yattee/Models/Navigation/HomeTab.swift
Normal file
@@ -0,0 +1,33 @@
|
||||
//
|
||||
// HomeTab.swift
|
||||
// Yattee
|
||||
//
|
||||
// Home tab selection definitions.
|
||||
//
|
||||
|
||||
import Foundation
|
||||
|
||||
/// Home tab selection.
|
||||
enum HomeTab: String, CaseIterable, Identifiable {
|
||||
case playlists
|
||||
case history
|
||||
case downloads
|
||||
|
||||
var id: String { rawValue }
|
||||
|
||||
var title: String {
|
||||
switch self {
|
||||
case .playlists: return String(localized: "home.playlists.title")
|
||||
case .history: return String(localized: "home.history.title")
|
||||
case .downloads: return String(localized: "home.downloads.title")
|
||||
}
|
||||
}
|
||||
|
||||
var icon: String {
|
||||
switch self {
|
||||
case .playlists: return "list.bullet.rectangle"
|
||||
case .history: return "clock"
|
||||
case .downloads: return "arrow.down.circle"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user