Hello,
This is the new feature of iOS18. To avoid it, please customize shell renderer and refer to the following code:
AddHandler on MauiProgram.cs
.ConfigureMauiHandlers( (handlers) => {
#if IOS
handlers.AddHandler(typeof(Shell), typeof(CustomShellRenderer));
#endif
}
);
CustomShellRenderer
#if IOS
public class CustomShellRenderer : ShellRenderer
{
protected override IShellItemRenderer CreateShellItemRenderer(ShellItem item)
{
var renderer = base.CreateShellItemRenderer(item);
if (UIDevice.CurrentDevice.UserInterfaceIdiom == UIUserInterfaceIdiom.Pad && UIDevice.CurrentDevice.CheckSystemVersion(18, 0) && renderer is ShellItemRenderer shellItemRenderer)
shellItemRenderer.TraitOverrides.HorizontalSizeClass = UIUserInterfaceSizeClass.Compact;
return renderer;
}
}
#endif
In addition, there is a known issue reported at GitHub- Shell.TitleView is not replacing the Shell.Title on iOS 18 iPad only. · Issue #26114 · dotnet/maui, you could follow the progress.
Best Regards,
Wenyan Zhang
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.