Hi, I tried that example project and indeed the bar is not displayed. The tab definition needs at least this to make it display the bar:
Tab(value: .search, role: .search) {
NavigationStack {
Text("This view is intentionally blank")
.searchable(text: $text) // <- your @State var
}
}
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: