On iPad OS 13.3, the issue seems to also occur when assigning the root-view controller after creating the UINavigationController.// This works as expected
let navigationController = UINavigationontroller(rootViewControlller: rootViewController)
present(navigationController, animated: true)
// This results in invalid layout on the navigation bar.
//
// Can be worked around by calling navigationController?.navigationBar.setNeedsLayout() in
// viewDidAppear of the root view controller. The navigation bar does however have invalid layout
// while the modal is animating in.
let navigationController = UINavigationController()
navigationController.setViewControllers([rootViewController], animated: false)
present(navigationController, animated: true)