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.
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.
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
}
}
- Run on an iOS 27 device or simulator.
- On the first tab, tap the "Push" button.
- The orange screen first appears with a height that excludes the tab bar, then expands to full screen on the next frame.
Both conditions must be present:
hidesBottomBarWhenPushedanimatedtrue | false | ❌ Visible resize |
true | true | ✅ Normal slide-in transition |
false | false | ✅ 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+UINavigationControllersetup — no custom transitions, noUINavigationControllerDelegate, no appearance customization beyond a plain opaque white nav bar. - Reproduces on a fresh project created from Xcode's default template.
- iOS 27.0 (24A434) — device and simulator
- Xcode 27.0 (27A266a)
- Fresh project, default template
- Is
pushViewController(animated: false)onto a view controller withhidesBottomBarWhenPushed = truestill 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. - 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 assigningview.framebefore pushing, but I'd rather not depend on private layout timing. - 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 usingflushUpdates?
Happy to attach the sample project and a screen recording — just let me know the preferred way to submit them.
Thanks!