Add native search screen
This commit is contained in:
1 parent
73b1d3513c
commit
36220e46ea
2 files changed
+367
-9
No files matched your search
@@ -158,16 +158,11 @@ private struct LibraryTabView: View {
|
||||
}
|
||||
|
||||
private struct SearchTabView: View {
|
||||
@State private var query = ""
|
||||
|
||||
var body: some View {
|
||||
NavigationStack {
|
||||
ContentUnavailableView(
|
||||
"Search Music",
|
||||
systemImage: "magnifyingglass",
|
||||
description: Text("Search for songs, albums, and artists.")
|
||||
)
|
||||
.navigationTitle("Search")
|
||||
.navigationBarTitleDisplayMode(.large)
|
||||
}
|
||||
NavigationStack { SearchView(query: $query) }
|
||||
.searchable(text: $query, prompt: "Songs, albums, artists")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user