title: How to make Sheet toggle and the navigate to a View
body: <p>I have 3 Views A, BSheet, C.</p>
  <p>When I click on a button inside A View, B Sheet becomes visible. I have a button in B Sheet. I want to press a button in BSheet View to close/toggle BSheet and then navigate to C View. Any ideas how I can accomplish that?</p>
  <p>A.swift</p>
  <pre><code>struct A: View{
   @State var displayBSheet = false
   var body: some View{
     NavigationView{
      VStack{
        Button(action: {self.displayBSheet.toggle()}){
          Text(&quot;Navigate to BSheet&quot;)
        }.sheet(isPresented: $displayBSheet){
         BSheet()
        }
        NavgiationLink(destination: C()){
         Text(&quot;Navigate To C&quot;)
        }
      }
     }
   }
  }
  </code></pre>
  <p>BSheet.swift</p>
  <pre><code>@Environment(\.presentationMode) var presentationMode: Binding&lt;PresentationMode&gt;
  struct MainView: View {
      var body: some View {
          Button(action:{
            self.presentationMode.wrappedValue.dismiss()//This only sheet but I want to navigate to C View also
          }){
            Text(&quot;Close sheet and navigate to struct C&quot;)
          }
      }
  }
  </code></pre>
  <p>C.swift</p>
  <pre><code>struct C: View {
      var body: some View {
          Text(&quot;C&quot;)
      }
  }
  </code></pre>