Repository navigation
Description
Description
On iOS 27, UITabBarController re-evaluates how many tabs fit before More inside its own traitCollectionDidChange:. ShellItemRenderer overrides that method (added in #29093, "Auto Resize chrome icons") and never calls base, so the re-evaluation never runs:
public override void TraitCollectionDidChange(UITraitCollection previousTraitCollection)
{
if (previousTraitCollection.VerticalSizeClass == TraitCollection.VerticalSizeClass)
return;
foreach (var item in TabBar.Items)
item.Image = TabbedViewExtensions.AutoResizeTabBarImage(TraitCollection, item.Image);
}Visible effect on a foldable iPhone (iPhone Duo simulator, Xcode 27.1 RC), Shell with 8 tabs, folded in landscape:
- Launch: the vertical tab rail shows 4 tabs + More. Correct.
- Unfold: the size class becomes regular and UIKit shows all 8 tabs. Correct.
- Fold again: the size class goes back to compact, but
tabBar.itemskeeps all 8. The rail no longer fits the panel and iOS collapses it into a single floating button. Tapping it animates and collapses back, so the user can't switch tabs at all.
A plain UIKit app with the same 8 tabs goes back to 4 + More every time (5/5). Adding the same override without super to that native app reproduces MAUI's behavior exactly (5/5). Both apps are in the repro below.
Not the cause, for anyone reading ShellItemRenderer: the maxTabs = 5 constants there only set IsInMoreTab, which routes push/pop into MoreNavigationController. They don't decide what the tab bar shows.
Steps to Reproduce
- Build the repro for the simulator with Xcode 27.1 and install it on the "iPhone Duo" device.
- Fold the device and rotate it to landscape (Device Hub), then launch: 4 tabs + More.
- Unfold, then fold again: the rail collapses into one button that doesn't open.
Full commands, including scripted folding with hinge, are in the repro's README.
Link to public reproduction project repository
https://github.com/chucksmith/ShellTabRailRepro-Maui
Version with bug
10.0.110 (Microsoft.Maui.Controls). The method is unchanged on main.
Is this a regression from previous behavior?
Yes, this used to work in a previous version of .NET MAUI (the override was added in #29093; before it, UIKit's implementation ran). The visible symptom only appears with iOS 27's tab rail.
Last version that worked well
Unknown/Other
Affected platforms
iOS
Affected platform versions
iOS 27.1 (simulator, iPhone Duo). Xcode 27.1 RC 27A9275, runtime 24A94232.
Did you find any workaround?
Yes. A ShellItemRenderer subclass that calls UITabBarController's implementation directly (a C# base call only reaches the Shell override), then restores CustomizableViewControllers, because UIKit's re-evaluation resets it and the More page gains an Edit button. It recovered 4 + More after the refold in 10/10 runs. It's in the repro (TraitFixShellItemRenderer.cs, build with -p:DefineConstants=WITH_FIX).
Suggested fix in MAUI: call base.TraitCollectionDidChange(previousTraitCollection) first, then reset CustomizableViewControllers = Array.Empty<UIViewController>(). PR to follow.
Separately: the dotnet new maui template crashes at launch on iOS 27 without the UIScene manifest and a SceneDelegate. The repro includes both.
Relevant log output
None.
Activity
kubaflo commentedon Oct 8, 2026
/issue triage
NafeelaNazhir commentedon Oct 9, 2026
This issue has been validated in Visual Studio Code 1.141.0 with .NET MAUI versions 10.0.0 and 10.0.110. It can be reproduced on the iOS 27.1 platform.
Screen.Recording.2026-10-09.at.10.20.37.AM.mov
[iOS] Shell: call base in ShellItemRenderer.TraitCollectionDidChange …
Expose citation-safe prose to /issue triage (#39276)
kubaflo commentedon Oct 10, 2026
Thank you for the report and the investigation details. We are closing this as completed: ShellItemRenderer restores UIKit's base trait-change callback and reasserts the empty CustomizableViewControllers invariant, allowing the More tab to update after the reported size-class change.
Supporting evidence: #39264 (merged into
inflight/current).This records the merged source change; it does not imply that the fix is present in every released .NET MAUI package.
If you can still reproduce the reported behavior in a build that includes the linked change, please comment here with the exact version and reproduction details so we can reopen and investigate. The existing reproduction and discussion remain available; a new issue is not required.
[inflight/candidate] Backport iOS Shell More re-evaluation fix (#39264)…
[iOS] Shell: call base in ShellItemRenderer.TraitCollectionDidChange …
[inflight/candidate] Backport iOS Shell More re-evaluation fix (#39264)…
[iOS] Shell: call base in ShellItemRenderer.TraitCollectionDidChange …
[inflight/candidate] Backport iOS Shell More re-evaluation fix (#39264)…
[iOS] Shell: call base in ShellItemRenderer.TraitCollectionDidChange …
[inflight/candidate] Backport iOS Shell More re-evaluation fix (#39264)…