iOS 18 beta. UINavigationController stack doesn't change.

iOS 18 22A5282m

navigationController.viewControllers = [UIViewController()] 

or

navigationController.setViewControllers([UIViewController()], animated: false) 

doesn't change navigation stack anymore.

There is no obvious reason why this shouldn't be working – please file a bug report with a sample project.

iOS 18 beta. UINavigationController stack doesn't change.
 
 
Q