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.