title: SwiftUI NavigationLink how to get to another SwiftUI page?
body: <p>I'm trying to get from one SwiftUI view to another SwiftUI view and I'm using a NavigationLink as per the code below, but I'm getting the error: Cannot invoke initializer for type 'NavigationLink&lt;_, _>' with an argument list of type '(destination: PlaylistTable)'</p>
  
  <p>Below is my code for the button which triggers the link to the next view:</p>
  
  <pre><code>struct MusicButton: View {
      var body: some View {
          NavigationView {
          Button(action: {
              NavigationLink(destination: PlaylistTable())
          })
          { Image(systemName: "music.note.list")
              .resizable()
              .foregroundColor(Color.white)
              .frame(width: 25, height: 25, alignment: .center)
              .aspectRatio(contentMode: .fit)
              .font(Font.title.weight(.ultraLight))
              }
          }
      }
  }
  </code></pre>