Version 1.4 - Translations, Like toasts Queue redesign.

This commit is contained in:
2026-04-09 16:54:41 +02:00
parent ec1ffcb0b1
commit 5f3902cb54
30 changed files with 3472 additions and 654 deletions
@@ -8,13 +8,19 @@
import SwiftUI
import UIKit
enum LibraryTab: String, CaseIterable {
case albumArtists = "Album Artists"
case artists = "Artists"
case albums = "Albums"
case playlists = "Playlists"
case podcasts = "Podcasts"
case radio = "Radio"
enum LibraryTab: CaseIterable {
case albumArtists, artists, albums, playlists, podcasts, radio
var title: LocalizedStringKey {
switch self {
case .albumArtists: return "Album Artists"
case .artists: return "Artists"
case .albums: return "Albums"
case .playlists: return "Playlists"
case .podcasts: return "Podcasts"
case .radio: return "Radio"
}
}
}
struct LibraryView: View {
@@ -45,7 +51,7 @@ struct LibraryView: View {
ToolbarItem(placement: .principal) {
Picker("Library", selection: $selectedTab) {
ForEach(LibraryTab.allCases, id: \.self) { tab in
Text(tab.rawValue).tag(tab)
Text(tab.title).tag(tab)
}
}
.pickerStyle(.segmented)