I think maybe I'm missing what needs to be included in the view itself to trigger the search bar?
I can get the Search Icon into the tabview just fine, but I cannot get the actual search bar to appear.
In the example projects I've located on the developer website, all of the ones with the search in the tab view, have an empty "this page is empty on purpose" search page, and their search bars also do not appear when that tab is selected.
Such as this project:
https://developer.apple.com/documentation/swiftui/enhancing-your-app-content-with-tab-navigation
Tab(value: .search, role: .search) {
OverseerrView(integrationId: integrationId)
}
results in the correct tab icon, and the view loads and shows what it should:
However, when that tab is active, the search bar does not appear.
I'm sure I'm missing something fairly simple, but I do believe I'll need a sample to see what it is. I've tried making sure my view has .searchable but I dont believe that to be the issue here.
And if the limitation is because I am not simply searching content already loaded into the view, but instead needing to call performSearch() with whatever is typed into the search bar, but I do not believe this to be the case, as this view works in apps such as Apple Music, where is performs a search function then pulls results from elsewhere.
Another limitation may be because of where my tab view is located, I have the below flow:
homeview.swift > navigation link > TabView.swift > actualview (ie requests, users, discover from my image)