title: How to go to another view with button click
body: <p>I have a button in my code and I have a file called LogindView.swift</p>
  
  <p>I cannot get the code to open another view file when clicking on the button. </p>
  
  <p>Can anybody give me an example on how to do it.</p>
  
  <p>In my button action I have tried to write LogindView() but i just gives me a warning.
  "Result of 'LogindView' initializer is unused"</p>
  
  <pre><code>    Button(action: {
              // Do action
              LogindView()
          }, label: {
              //** Label text
              Text("Logind")
                  .font(.headline)
                  .padding(.all)
                  .foregroundColor(Color.white)
          })
          .background(Color.blue)
  </code></pre>