Repository navigation
Description
Description
When the app is built against the iOS 27 SDK, a page with a NavigationPage.TitleView can be pushed with a navigation bar that shows nothing. The TitleView is created, but its native container is 0pt tall and clips its content: {{0, 0}, {847, 0}}.
It happens on the first push onto a NavigationPage whose navigation bar is hidden and has never been laid out (its frame is {{0, 0}, {W, 0}}). In this repro that bar belongs to a NavigationPage that wraps a FlyoutPage, set as Window.Page while the window is already visible.
The same code built against the iOS 26.5 SDK works.
Screen.Recording.2026-10-06.at.10.12.55.mov
Screen.Recording.2026-10-06.at.10.35.41.mov
Steps to Reproduce
- Build and run on the iPhone Duo simulator (iOS 27.1) with the iOS 27 SDK (see Environment).
- Tap 1. Replace Window.Page. This sets
Window.Page = NavigationPage(FlyoutPage { Detail = NavigationPage(home) }), with the navigation bar hidden on both theFlyoutPageandhome. - Tap 2. Push page with TitleView. This pushes a
ContentPagewith an orangeLabelTitleView onto the outerNavigationPage.
Expected: the orange TitleView is shown in the navigation bar.
Actual: the navigation bar is empty. The pushed page shows the TitleView's native container frame: {{0, 0}, {847, 0}}.
Going back and pushing again shows the TitleView correctly ({{0, 0}, {847, 58}}), because the bar has been laid out by then.
Link to public reproduction project repository
https://github.com/EmilienDup/MAUITitleViewZeroHeightiOS27Bug
Version with bug
10.0.110
Is this a regression from previous behavior?
No, this is something new
Last version that worked well
Unknown/Other
Affected platforms
iOS
Affected platform versions
27.1
Did you find any workaround?
On iOS 26+, NavigationRenderer.ParentingViewController.CreateTitleViewContainer sizes the TitleView container from navigationBar.Frame whenever that frame is not CGRect.Empty:
CGRect frame = navigationBar.Frame;
if (frame != CGRect.Empty)
{
return new Container(titleView, navigationBar, frame);
}When the push starts, the outer navigation bar is still hidden and has never been laid out, so its frame is {{0, 0}, {951, 0}}. That frame is not CGRect.Empty, so the container is created with a height of 0. That height is then cached in Container._navigationBarHeight and returned by ToolbarHeight from then on. The container never picks up the bar's real height after the bar appears.
The same code is still in Microsoft.Maui.Controls 11.0.0-rc.1.26451.6 (checked by decompiling it; that version couldn't be run against the iOS 27 SDK here).
Possible fix: ignore a frame whose height is 0 (for example, check frame.Height > 0 rather than frame != CGRect.Empty), and/or don't cache the navigation bar height for the container's lifetime.
Workaround
After the page has appeared, setting the TitleView to null and back makes MAUI create a new container from the now laid-out bar:
var titleView = NavigationPage.GetTitleView(page);
NavigationPage.SetTitleView(page, null);
NavigationPage.SetTitleView(page, titleView);What was tested
| Variant | Result |
|---|---|
| iPhone Duo, iOS 27.1, iOS 27 SDK | Broken: container {847, 0} |
| iPhone Duo, iOS 27.1, iOS 26.5 SDK (Xcode 26.6) | OK: container {287, 54} |
| iPhone 18 Pro, iOS 27.0, iOS 27 SDK | OK: container {314, 54} |
| iPad Pro 11-inch (M5), iOS 27.0, iOS 27 SDK | OK: container {748, 54} |
iPhone Duo, iOS 27 SDK, NavigationPage(home) replacing Window.Page (no FlyoutPage) |
OK: the hidden bar is laid out at {{0, -58}, {951, 58}} |
iPhone Duo, iOS 27 SDK, the FlyoutPage structure as the window's initial page |
OK: the hidden bar is laid out at {{0, -54}, {951, 54}} |
| iPhone Duo, iOS 27 SDK, second push after a pop | OK |
The iOS 27.1 runtime used here only supports the iPhone Duo, so device and OS version couldn't be tested separately. The iPhone Duo simulator was unfolded for every run.
Environment
- Microsoft.Maui.Controls 10.0.110
- .NET SDK 11.0.100-rc.1.26425.128, iOS pack
Microsoft.iOS.Sdk.net10.0_27.027.0.10539-xcode27.0. The 10.0.300 SDK resolves 27.0.10417-xcode27.0, which fails to link against Xcode 27.1 (framework 'EnhancedLinkSecurity' not found). - Xcode 27.1 beta (27A9269)
- Simulator: iPhone Duo, iOS 27.1 (24A94401)
- macOS 26.6.2
Build
DEVELOPER_DIR=/Applications/Xcode-27.1.0-Beta.app/Contents/Developer
dotnet build -c Debug -r iossimulator-arm64 -p:ValidateXcodeVersion=false
Activity
NafeelaNazhir commentedon Oct 6, 2026
This issue has been validated in Visual Studio Code 1.140.0 with .NET MAUI versions 10.0.0, 10.0.10, 10.0.11 and 10.0.110. It can be reproduced on iOS platform from 10.0.11 version.
Screen.Recording.2026-10-06.at.3.42.08.PM.mov
Screen.Recording.2026-10-06.at.4.19.56.PM.mov
kubaflo commentedon Oct 6, 2026
github-actions commentedon Oct 6, 2026
Regression Trace
Verdict: Insufficient evidence — A concrete zero-height sizing diagnosis and a human-reported release boundary exist, but no introducing commit can be verified.
Evidence: bounded snapshot; degraded source/history coverage — Human comments were not truncated. The collector supplied no matching source-path evidence; scoped history results were policy-filtered. No good-to-bad source comparison was established.
🔎 Regression Analysis — click to expand
The first push after replacing the visible window with the nested NavigationPage/FlyoutPage structure produces an invisible TitleView; a second push or recreating the TitleView works. This supports investigating initialization timing rather than assuming every iOS 27 navigation bar is affected.
📊 Version boundary
The form reports failing MAUI 10.0.110 (source revision) and an unknown last working MAUI release. The author reports success with the iOS 26.5 SDK on the same iPhone Duo/iOS 27.1 combination: that is an SDK boundary, not a MAUI release boundary.
A human validation comment separately reports 10.0.10 working → 10.0.11 failing. Their source revisions resolve to 40427aa and 5aa9ced, but equivalent SDK/runtime conditions and forward ancestry remain unverified. The reported 11.0 RC inspection was decompilation only, not a runtime result.
🧬 Candidate changes
No defensible introducing change. The author’s inline diagnosis identifies a nonempty navigation-bar frame with zero height being accepted and cached by the title container. This is a specific diagnostic lead, not verified introduction evidence. Existing issue attachments and validation videos were inventoried but not analyzed; no static images were available.
🧭 Follow-up — actions and refresh
Next action: Confirm whether the reported 10.0.10/10.0.11 comparison used the same iOS SDK/pack, Xcode, simulator/runtime and replacement sequence. If not, compare those two MAUI versions with those conditions held fixed, recording the bar frame before container creation. This distinguishes a MAUI release change from an SDK-triggered exposure of existing sizing logic; the already supplied version numbers need not be repeated.
Improve regression-trace evidence collection (#39236)
[iOS 27]Fix TitleView sizing when the navigation bar has not been lai…
[iOS 27]Fix TitleView sizing when the navigation bar has not been lai…
[inflight/candidate] [iOS 27] Fix TitleView sizing before navigation …
kubaflo commentedon Oct 18, 2026
Fixed here #39285
[iOS 27]Fix TitleView sizing when the navigation bar has not been lai…
[inflight/candidate] [iOS 27] Fix TitleView sizing before navigation …