Move search title to page content
This commit is contained in:
1 parent
fad462f5b4
commit
2c6ff1ddcc
1 file changed
+6
-3
@@ -101,6 +101,11 @@ struct SearchView: View {
|
||||
var body: some View {
|
||||
ScrollView {
|
||||
VStack(alignment: .leading, spacing: 0) {
|
||||
Text("Search")
|
||||
.font(.system(size: 34, weight: .bold))
|
||||
.padding(.top, 4)
|
||||
.padding(.bottom, 16)
|
||||
|
||||
categoryPicker
|
||||
Divider().overlay(.white.opacity(0.12))
|
||||
|
||||
@@ -136,9 +141,7 @@ struct SearchView: View {
|
||||
.scrollIndicators(.hidden)
|
||||
.background(Color.black.ignoresSafeArea())
|
||||
.foregroundStyle(.white)
|
||||
.navigationTitle("Search")
|
||||
.navigationBarTitleDisplayMode(.large)
|
||||
.toolbarColorScheme(.dark, for: .navigationBar)
|
||||
.toolbar(.hidden, for: .navigationBar)
|
||||
.task { model.loadRecentTracks() }
|
||||
.onChange(of: query) { _, value in model.search(value) }
|
||||
.onChange(of: model.category) { _, _ in model.search(query, immediately: true) }
|
||||
|
||||
Reference in new issue
Block a user