Skip to content

[iOS 27] NavigationPage.TitleView is 0pt tall (invisible) when pushed onto a NavigationPage whose bar was never laid out #39155

Closed

Description

@EmilienDup

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

  1. Build and run on the iPhone Duo simulator (iOS 27.1) with the iOS 27 SDK (see Environment).
  2. Tap 1. Replace Window.Page. This sets Window.Page = NavigationPage(FlyoutPage { Detail = NavigationPage(home) }), with the navigation bar hidden on both the FlyoutPage and home.
  3. Tap 2. Push page with TitleView. This pushes a ContentPage with an orange Label TitleView onto the outer NavigationPage.

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.0 27.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

  1. added
    t/bug
    on Oct 6, 2026
  2. NafeelaNazhir commented on Oct 6, 2026

    @NafeelaNazhir
    Contributor

    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.

    from 10.0.11 Output(Issue reproduced) 10.0.10 and below Output(Issue not reproducedd)
    Screen.Recording.2026-10-06.at.3.42.08.PM.mov
    Screen.Recording.2026-10-06.at.4.19.56.PM.mov
  3. added
    s/verified
    s/triaged
    i/regression
    on Oct 6, 2026
  4. kubaflo commented on Oct 6, 2026

    @kubaflo
  5. github-actions commented on Oct 6, 2026

    @github-actions
    Contributor

    Regression Trace

    @EmilienDup — regression investigation for #39155.

    Scope Regression trace Range unknown


    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.

    Maintainers: comment /issue trace-regression to refresh this report.

  6. added
    partner/syncfusion
    on Oct 7, 2026
  7. added this to the .NET 10 SR12 milestone on Oct 14, 2026
  8. added 2 commits that reference this issue on Oct 14, 2026
    81ff12a
    40a966c
  9. kubaflo commented on Oct 18, 2026

    @kubaflo
    Contributor

    Fixed here #39285

  10. added 2 commits that reference this issue on Oct 18, 2026
    621a12b
    a5fe4d4
  11. locked and limited conversation to collaborators on Nov 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-controls-navigationpagei/regressionpartner/syncfusionplatform/iosregressed-in-10.0.11s/triageds/verifiedt/bug

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions