Complete the code to push a new view controller onto the navigation stack.
navigationController?.[1](UIViewController(), animated: true)Use pushViewController to add a new screen to the navigation stack.
Complete the code to pop the current view controller from the navigation stack.
navigationController?.[1](animated: true)Use popViewController to remove the current screen and go back.
Fix the error in the code to set the root view controller of the navigation controller.
navigationController?.[1] = [UIViewController()]The viewControllers property sets the stack of view controllers, starting with the root.
Fill both blanks to pop to the root view controller with animation.
navigationController?.[1](animated: [2])
popToRootViewController(animated: true) returns to the first screen with animation.
Fill all three blanks to replace the current navigation stack with two new view controllers.
navigationController?.[1] = [[2], [3]]
Setting viewControllers replaces the stack. Provide new view controller instances in an array.