Yattee v2 rewrite

This commit is contained in:
Arkadiusz Fal
2026-02-08 18:31:16 +01:00
parent 20d0cfc0c7
commit 05f921d605
1043 changed files with 163875 additions and 68430 deletions

View 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"
}
}
}