navigationController.viewControllers = [rootViewController] code example
Example: navigationviewcontroller setviewcontrollers swift
vc.setViewControllers([standingsViewController], animated: true)
vc.setViewControllers([standingsViewController], animated: true)