iOS 18 - UINavigationController crash with setViewControllers

Steps to reproduce:

From my UINavigationController, call

setViewControllers([vc1], animated: true)

Then later call

setViewControllers([vc2], animated: true)

Results:

In iOS 17, this behaves fine. In iOS 18, it crashes the UINavigationController.

Both log: Attempt to present * on * which is already presenting *

Workaround:

use setViewControllers(...animated: false)

iOS 18 - UINavigationController crash with setViewControllers
 
 
Q