title: How can you switch views without having a navigationView or an popover?
body: <p>I am trying to change a view without having something over it like when you used segue in swift. But the only solution I came up with is to have a navigation bar navigationBar or a popover. </p>
  
  <pre><code>struct view1: View {
  
      var body: some View{
  
          Button(action: {
  //          go to view2``
          }) {
              Text("press")
          }
  
      }
  }
  </code></pre>
  
  <pre><code>struct view2: View {
  
      var body: some View{
         Text("yeay")
  
      }
  }
  </code></pre>