Initial Commit
This commit is contained in:
@@ -0,0 +1,46 @@
|
||||
//
|
||||
// LibraryView.swift
|
||||
// Mobile Music Assistant
|
||||
//
|
||||
// Created by Sven Hanold on 26.03.26.
|
||||
//
|
||||
|
||||
import SwiftUI
|
||||
|
||||
struct LibraryView: View {
|
||||
@Environment(MAService.self) private var service
|
||||
|
||||
var body: some View {
|
||||
NavigationStack {
|
||||
TabView {
|
||||
Tab("Artists", systemImage: "music.mic") {
|
||||
ArtistsView()
|
||||
}
|
||||
|
||||
Tab("Albums", systemImage: "square.stack") {
|
||||
AlbumsView()
|
||||
}
|
||||
|
||||
Tab("Playlists", systemImage: "music.note.list") {
|
||||
PlaylistsView()
|
||||
}
|
||||
}
|
||||
.tabViewStyle(.page(indexDisplayMode: .always))
|
||||
.navigationTitle("Library")
|
||||
.toolbar {
|
||||
ToolbarItem(placement: .primaryAction) {
|
||||
NavigationLink {
|
||||
SearchView()
|
||||
} label: {
|
||||
Label("Search", systemImage: "magnifyingglass")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#Preview {
|
||||
LibraryView()
|
||||
.environment(MAService())
|
||||
}
|
||||
Reference in New Issue
Block a user