title: Make NavigationView searchable but only for one page in the TabView
body: <p>I have a NaviagtionView with a TabView and 4 TabItems inside. One of the TabItems should display a searchbar. I can make the NavigationView .searchable but I only want that inside the on TabItem where I want to do the search. How can i do that?
  Here is my code:</p>
  <pre><code>var body: some View {
      NavigationView {
          
          TabView{
              HomeScreen()
                  .background(Color(&quot;BackgroundColor&quot;))
                  .tabItem{
                      Image(systemName: &quot;house&quot;)
                  }
              PostScreen()
                  .background(Color(&quot;BackgroundColor&quot;))
                  .tabItem{
                      Image(systemName: &quot;plus&quot;)
                  }
              SearchScreen()
                  .background(Color(&quot;BackgroundColor&quot;))
                  .tabItem{
                      Image(systemName: &quot;magnifyingglass&quot;)
                  }
              ProfileScreen()
                  .background(Color(&quot;BackgroundColor&quot;))
                  .tabItem{
                      Image(systemName: &quot;person&quot;)
                  }
          }
          .navigationTitle(&quot;MyApp&quot;)
          .navigationBarTitleDisplayMode(.inline)
         .searchable(text: $text)
          
          
      }
  }
  </code></pre>