Navigation View in SwiftUI
Navigation view is used for presenting a stack of views that represents a visible path in a navigation hierarchy. We use a
NavigationView to create a navigation-based app where user can navigate through a collection of views. Users navigate to a destination view by selecting a
NavigationLink that we provide.
iOS, WatchOS and TVOS pushes a new view onto the stack, and enable removing items from the stack with…