Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions App/Continuity/Views/LibrarySheetView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ struct LibrarySheetView: View {
@Environment(MainPagerState.self) private var pagerState
@Environment(\.modelContext) private var modelContext
@State private var showingAdd = false
@State private var showingSearch = false

var body: some View {
NavigationStack {
Expand All @@ -27,6 +28,14 @@ struct LibrarySheetView: View {
.disabled(!prepQueue.syncingPlaylistIDs.isEmpty)
.accessibilityLabel("Sync library")
}
ToolbarItem(placement: .primaryAction) {
Button {
showingSearch = true
} label: {
Image(systemName: "magnifyingglass")
}
.accessibilityLabel("Search music")
}
ToolbarItem(placement: .primaryAction) {
Button {
showingAdd = true
Expand All @@ -40,6 +49,10 @@ struct LibrarySheetView: View {
.sheet(isPresented: $showingAdd) {
AddMusicView()
}
// Full-screen: the page owns its whole layout (pill / results / custom keyboard).
.fullScreenCover(isPresented: $showingSearch) {
SearchView()
}
.safeAreaInset(edge: .bottom) {
if player.currentTrack != nil {
MiniPlayerView()
Expand Down
Loading
Loading