Presents the specified view controller in the navigation interface.
- iOS 8.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
The view controller to display.
The object that made the request to show the view controller.
This method pushes
vc onto the navigation stack in a similar way as the
push method. You can call this method directly if you want but typically this method is called from elsewhere in the view controller hierarchy when a new view controller needs to be shown.
The Show segue uses this method to display a new view controller.