Skip to main content
1 of 2
Sagar Chauhan
  • 5.8k
  • 2
  • 24
  • 58

Add NavigationLink in NavigationView with destination view class name. See following code:

NavigationLink(destination: <DestinationView>) { 
    // your code
}

See more details here: https://developer.apple.com/tutorials/swiftui/building-lists-and-navigation#set-up-navigation-between-list-and-detail

I hope this will fix your issue.

Sagar Chauhan
  • 5.8k
  • 2
  • 24
  • 58