Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Nov 2, 2025

Original prompt

This section details on the original issue you should resolve

<issue_title>Using custom TitleView in AppShell causes shell content to be covered in iOS 26</issue_title>
<issue_description>When using a custom view for the Shell's TitleView on iOS 26, the title view ends up covering the content Shell is currently displaying. See the below screenshot.

Image

When in this state, the content cannot be interacted with.

This is using the base MAUI template with a slight modification to add a custom TItleView. Here's the AppShell.xaml.

<?xml version="1.0" encoding="UTF-8" ?>
<Shell
    x:Class="TitleViewIssue.AppShell"
    xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
    xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
    xmlns:local="clr-namespace:TitleViewIssue"
    Title="TitleViewIssue">
    
    <Shell.TitleView>
<!-- 
        This label covers the entire app and isn't contained in the title view itself.
        A workaround is to either set VerticalOptions="Center" or to give it an explicit
        HeightRequest, but neither are necessary pre-iOS 26.
-->
        <Label Text="I'm a custom title"
               FontSize="20"
               HorizontalTextAlignment="Center"
               VerticalTextAlignment="Center"/>
    </Shell.TitleView>

    <ShellContent
        Title="Home"
        ContentTemplate="{DataTemplate local:MainPage}"
        Route="MainPage" />

</Shell>

This same code doesn't have this issue when built with an older MAUI iOS workload targeting iOS 18.5.

A workaround I've found is to manually specify VerticalOptions="Center" or to set HeightRequest on the view inside <Shell.TitleView>.

Attached is a sample project that reproduces the issue.

TitleViewIssue.zip</issue_description>

<agent_instructions>Use the custom agent in .github/agents/pr-reviewer.md@pr-reviewer to review this pull request #32215 for issue #32287</agent_instructions>

Comments on the Issue (you are @copilot in this section)


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

- Modified TitleViewContainer to use autoresizing masks for iOS 26+ and MacCatalyst 26+
- Added constructor to set frame from navigation bar dimensions
- Updated UpdateTitleView to use new constructor for iOS 26+
- Added test case Issue32287 with UI test

This fix addresses the issue where custom TitleViews were expanding to cover Shell content in iOS 26, making content uninteractable.

Co-authored-by: PureWeen <5375137+PureWeen@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Using custom TitleView in AppShell causes shell content to be covered in iOS 26

2 participants