Search: Fix inline navigation title
Transitioning the navigation title to inline while editing search broke for older OS versions. Make a more bulletproof solution to inline the navigation title when the user commits a search as that's a definitive event to listen to. Signed-off-by: kingbri <bdashore3@proton.me>
This commit is contained in:
parent
15ad8c5581
commit
b0850d43d7
1 changed files with 1 additions and 1 deletions
|
|
@ -72,7 +72,7 @@ struct ContentView: View {
|
||||||
SearchResultsView()
|
SearchResultsView()
|
||||||
}
|
}
|
||||||
.navigationTitle("Search")
|
.navigationTitle("Search")
|
||||||
.navigationBarTitleDisplayMode(navModel.isEditingSearch || navModel.isSearching ? .inline : .automatic)
|
.navigationBarTitleDisplayMode(navModel.isSearching ? .inline : .large)
|
||||||
.navigationSearchBar {
|
.navigationSearchBar {
|
||||||
SearchBar("Search",
|
SearchBar("Search",
|
||||||
text: $scrapingModel.searchText,
|
text: $scrapingModel.searchText,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue