UIToolbar in UINavigationController in UITabBar

My view structure in UIKit is like this: UITabBarController (with UITabBar) -> UINavigationController -> UIToolbar (by setting self.navigationController.toolbarHidden = NO). The toolbar is shown in red in the picture. I'm using it like so:

self.navigationController.toolbarHidden = NO;
self.toolbarItems = @[element1, element2];

This toolbar does work fine up to iOS 18.5 but it does not show up when compiling using iOS 26 Beta 3. Is this a bug?

I don't see any deprecation in the documentation about it. Am I doing something wrong?

I get an error when trying to update the post, therefore I add it as a new comment: The toolbar is showing up on iPadOS 26.

This is what it looks like in iOS 26 beta 4. The toolbar is behind the tabbar:

All I did in this demo project is embed the default view controller in a navigation controller and then embed that in a tabbar. Here's the view controllers code:

override func viewDidLoad() {
    super.viewDidLoad()
    title = "Hello World"
    let actionButton = UIBarButtonItem(title: "This is a button on the toolbar", style: .plain, target: self, action: #selector(buttonTapped))
    self.navigationController?.isToolbarHidden = false
    self.toolbarItems = [actionButton];
}
UIToolbar in UINavigationController in UITabBar
 
 
Q