title: How to redirect from one view to another view in SwiftUI?
body: <p>I am using <code>SwiftUI</code>. I'm trying to move from list to details of a particular row of list. I've used code written below</p>
  
  <pre class="lang-swift prettyprint-override"><code>struct StudentList: View {
      var body: some View {
          NavigationView {
              List(studentData) { student in
                  NavigationLink(destination: studentDetail()) {
                      studentRow(student: student)
                  }
              }
              .navigationBarTitle(Text("Student Details"))
          }
      }
  }
  
  struct StudentList_Previews: PreviewProvider {
      static var previews: some View {
          StudentsList()
      }
  }
  </code></pre>