title: How to go to root tab view when a tab is tapped twice?
body: <pre><code>import SwiftUI
  
  struct ContentView: View {
      
      @State private var tabSelection = 2
      @State private var tappedTwice: Bool = false
      
      var body: some View {
          
          TabView(selection:$tabSelection) {
              
              DiscoverTab()
                  .tabItem {
                      VStack {
                          Image(systemName: &quot;briefcase&quot;)
                          Text(&quot;Discover&quot;)
                      }
                  }.tag(1)
              
              MapTab()
                  .tabItem {
                      VStack {
                          Image(systemName: &quot;map&quot;)
                          Text(&quot;Map&quot;)
                      } }.tag(2)
              
              RandomizeTab()
                  .tabItem {
                      VStack {
                          Image(systemName: &quot;shuffle&quot;)
                          Text(&quot;Randomize&quot;)
                      } }.tag(3)
              
              
          }.accentColor(.red)
          .environmentObject(CategoriesModel())
          
      }
  }
  
  struct ContentView_Previews: PreviewProvider {
      static var previews: some View {
          ContentView()
      }
  }
  </code></pre>
  <p>Inside of each view linked to my tabview, there are more views creating a set of nested views. How do I exit these views and return to the parent view when I tap the tabview icon twice? Thanks</p>