title: NavigationLink doesn't work with a button
body: <p>I tried adding a NavigationLink without a NavigationView on another project and it worked.</p>
  <p>However when I tried copy and pasting the code onto another project, it doesn't work.</p>
  <p>Please help. I've tried testing it on an empty project and it doesn't work as well. I'm wondering what went wrong. I've checked the curly braces placement as well. All placed correctly...</p>
  <pre><code>import SwiftUI
  
  
  struct Intro: View {
  var body: some View {
      
      ZStack {
          VStack {
              Image(&quot;CDM&quot;)
                  .resizable()
                  .frame(width: 500, height: 500, alignment: .center)
              HStack {
                  Text(&quot;Welcome to Chatter&quot;)
                      .font(.system(size: 45, weight: .semibold, design: .rounded))
                      .foregroundColor(Color(&quot;Yellow&quot;))
                  Image(systemName: &quot;message.fill&quot;)
                      .font(.system(size: 45))
                      .foregroundColor(Color(&quot;Yellow&quot;))
                      .padding()
              }
              
              Text(&quot;&quot;&quot;
               Note:
               This experience is best viewed in Horizontal
               &quot;&quot;&quot;)
              .font(.system(size: 30, weight: .semibold, design: .rounded))
              .foregroundColor(.secondary)
              .padding()
              
              
              
         
  
              Button(action: {
                  print(&quot;intro2&quot;)
              }) {
                  NavigationLink(destination: Intro2()) {
                      Text(&quot;Next&quot;)
  
                          .font(.system(size: 30, weight: .semibold ,design: .rounded))
                          .foregroundColor(.white)
                          .padding()
                          .background(Color(&quot;Purple&quot;))
                          .cornerRadius(20)
                  }
              }
          }
          
      }
      
      
  }
  }
  
  
  struct Intro2: View {
  var body: some View {
      VStack {
          Text(&quot;What you can do in this experience&quot;)
          
          Button {
              print(&quot;test&quot;)
          } label: {
              NavigationLink(destination: Main()) {
                  HStack {
                      Text(&quot;Click here to get started!&quot;)
                          .font(.system(size: 25, weight: .regular ,design: .rounded))
                          .foregroundColor(.white)
                          .padding()
                          .background(Color(&quot;Purple&quot;))
                          .cornerRadius(20)
                  }
                  
              }
          }
      }
  }
  </code></pre>
  <p>}</p>