UINavigationController: pushViewController(animated: false) with hidesBottomBarWhenPushed makes the incoming view controller visibly resize from an undersized frame to full screen (iOS 27+)

Hi everyone,

I believe I've found a behavior change (or regression) in iOS 27 around UINavigationController when pushing with animated: false to a view controller that sets hidesBottomBarWhenPushed = true.

Observed behavior

On iOS 27, the incoming view controller appears on screen at a size that still accounts for the tab bar, then expands to the full screen height on the next frame. Since there's no transition animation to mask it, the user sees the whole screen — including its background color — visibly "grow" into place.

On iOS 18 and earlier the same code showed the destination view controller instantly at its final size, with no visible resize. That's why this only surfaced after upgrading the device to iOS 27.

Minimal reproduction

The destination view controller contains no subviews, no xib, no constraints and no layout code — only a background color. So this is unrelated to the content of the pushed screen.

UITabBarController subclass with two tabs, each wrapped in a UINavigationController:

final class MainTabBarController: UITabBarController {
    override func viewDidLoad() {
        super.viewDidLoad()
        tabBar.tintColor = .systemOrange
        viewControllers = [
            makeNavigationController(root: ViewController(), title: "Home",
                                     image: UIImage(systemName: "house")),
            makeNavigationController(root: PlaceholderViewController(),
                                     title: "MENU", image: UIImage(systemName: "safari")),
        ]
    }

    private func makeNavigationController(root: UIViewController,
                                          title: String,
                                          image: UIImage?) -> UINavigationController {
        let nav = UINavigationController(rootViewController: root)
        let appearance = UINavigationBarAppearance()
        appearance.configureWithOpaqueBackground()
        appearance.backgroundColor = .white
        appearance.shadowColor = .clear
        nav.navigationBar.standardAppearance = appearance
        nav.navigationBar.scrollEdgeAppearance = appearance
        nav.tabBarItem = UITabBarItem(title: title, image: image, selectedImage: image)
        return nav
    }
}

ViewController (tab 1 root) — the trigger:

class ViewController: UIViewController {
    private let pushButton: UIButton = {
        var config = UIButton.Configuration.filled()
        config.title = "Push"
        config.baseBackgroundColor = .systemOrange
        let button = UIButton(configuration: config)
        button.translatesAutoresizingMaskIntoConstraints = false
        return button
    }()

    override func viewDidLoad() {
        super.viewDidLoad()
        view.backgroundColor = .systemBackground
        title = "Home"
        view.addSubview(pushButton)
        pushButton.addTarget(self, action: #selector(didTapPushButton), for: .touchUpInside)
        NSLayoutConstraint.activate([
            pushButton.centerXAnchor.constraint(equalTo: view.centerXAnchor),
            pushButton.centerYAnchor.constraint(equalTo: view.centerYAnchor),
        ])
    }

    @objc private func didTapPushButton() {
        let vc = OrangeViewController()
        vc.hidesBottomBarWhenPushed = true                              // (1)
        navigationController?.pushViewController(vc, animated: false)   // (2)
    }
}

OrangeViewController — the destination:

final class OrangeViewController: UIViewController {
    override func viewDidLoad() {
        super.viewDidLoad()
        view.backgroundColor = .orange
    }
}
Steps to reproduce
  1. Run on an iOS 27 device or simulator.
  2. On the first tab, tap the "Push" button.
  3. The orange screen first appears with a height that excludes the tab bar, then expands to full screen on the next frame.
What I've already ruled out

Both conditions must be present:

hidesBottomBarWhenPushedanimatedResult
truefalse❌ Visible resize
truetrue✅ Normal slide-in transition
falsefalse✅ No visible resize

Additional findings:

  • The destination view controller has no subviews or constraints, so this isn't a layout problem in my own hierarchy.
  • I also verified that the same resize occurs with a completely empty UIViewController created purely in code — the destination has no storyboard, nib, or constraints at all.
  • Reproduces with a plain UITabBarController + UINavigationController setup — no custom transitions, no UINavigationControllerDelegate, no appearance customization beyond a plain opaque white nav bar.
  • Reproduces on a fresh project created from Xcode's default template.
Environment
  • iOS 27.0 (24A434) — device and simulator
  • Xcode 27.0 (27A266a)
  • Fresh project, default template
Questions
  1. Is pushViewController(animated: false) onto a view controller with hidesBottomBarWhenPushed = true still a supported combination on iOS 27? The behavior change makes me wonder whether this is intended (requiring a workaround on my side) or a regression.
  2. If it's a regression, what's the recommended way to perform an animation-less push into a tab-bar-hiding view controller without the intermediate undersized frame? I've tried loadViewIfNeeded() plus manually assigning view.frame before pushing, but I'd rather not depend on private layout timing.
  3. I noticed the new UIView.AnimationOptions.flushUpdates (iOS 26+) documentation about flushing pending layout when animation scopes change. Is this behavior change related? Should view controllers pushed without animation be using flushUpdates?

Happy to attach the sample project and a screen recording — just let me know the preferred way to submit them.

Thanks!



The demo screenshot is as follows

Thanks for the post.

Do you get the same results with just the relevant code in a small test project?
If so, please share a link to your test project.
That'll help us better understand what's going on.
If you're not familiar with preparing a test project, take a look at
Creating a test project.

ahidesBottomBarWhenPushed = true with animated: false is a long-standing, documented combination, and nothing in the public API contract says it should produce an intermediate undersized frame or at least that I can see, can you point me to the correct documentation?
https://developer.apple.com/documentation/uikit/uiviewcontroller/hidesbottombarwhenpushed

Do you see a different result when you remove the animation? Have you tried the latest Xcode available as well as the beta posted in the developer website?

UIView.performWithoutAnimation {
    navigationController?.pushViewController(vc, animated: true)
}

Thanks

Albert  WWDR