Hello, I would like tow have a large navigationTitle style after going back from the sub view. The issue is caused by the searchable modifier.
import SwiftUI
struct SearchTest: View {
@State var query: String = ""
var body: some View {
List {
NavigationLink("One") {
Text("I need a large navigation title...")
}
}
.searchable(text: $query, placement: .navigationBarDrawer(displayMode: .always))
.navigationTitle("Test")
}
}
struct SearchTest_Previews: PreviewProvider {
static var previews: some View {
NavigationStack {
SearchTest()
}
}
}