Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[iOS] Shell.NavBarIsVisible="False" briefly displays navigation bar and disappears #26994

Open
toshimitsu-o opened this issue Jan 8, 2025 · 3 comments · May be fixed by #27080
Open

[iOS] Shell.NavBarIsVisible="False" briefly displays navigation bar and disappears #26994

toshimitsu-o opened this issue Jan 8, 2025 · 3 comments · May be fixed by #27080
Labels
area-controls-shell Shell Navigation, Routes, Tabs, Flyout platform/iOS 🍎 s/needs-attention Issue has more information and needs another look s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working

Comments

@toshimitsu-o
Copy link

toshimitsu-o commented Jan 8, 2025

Description

Shell.NavBarIsVisible="False" set on ContentPage always worked but after upgrading to .NET 9 from 8, the navigation bar appears and disappears which create a flickering. It only happens quickly, and it was hard to figure out what it was initially. It doesn't happen when revisiting the page again. I only worked out what was happening from screen recording the app on iPhone and reviewed it at a slow speed. Happens only on iOS.

I've tested with a clean project with sample data and the same issue was confirmed. I only tested with Shell tab bar navigation.

Steps to Reproduce

  1. Create a MAUI project
  2. Add TabBar navigation
  3. In any page, add Shell.NavBarIsVisible="False"
  4. Build the app
  5. Switch tab pages on iPhone

Link to public reproduction project repository

https://github.com/toshimitsu-o/MauiSampleDotNet9

Version with bug

9.0.0 GA

Is this a regression from previous behavior?

Yes, this used to work in .NET MAUI

Last version that worked well

8.0.100 SR10

Affected platforms

iOS

Affected platform versions

iOS 18.1

Did you find any workaround?

Adding Shell.NavBarIsVisible="False" in AppShell.xaml didn't work but creating custom shell renderer worked as described in the link below.
#18948 (comment)

Relevant log output

@toshimitsu-o toshimitsu-o added the t/bug Something isn't working label Jan 8, 2025
Copy link

We've found some similar issues:

If any of the above are duplicates, please consider closing this issue out and adding additional context in the original issue.

Note: You can give me feedback by 👍 or 👎 this comment.

@toshimitsu-o toshimitsu-o changed the title Shell.NavBarIsVisible="False" briefly displays navigation bar and disappears [iOS] Shell.NavBarIsVisible="False" briefly displays navigation bar and disappears Jan 8, 2025
@jfversluis jfversluis added area-controls-shell Shell Navigation, Routes, Tabs, Flyout s/needs-repro Attach a solution or code which reproduces the issue labels Jan 8, 2025
@toshimitsu-o
Copy link
Author

reproduction repo https://github.com/toshimitsu-o/MauiSampleDotNet9

@dotnet-policy-service dotnet-policy-service bot added s/needs-attention Issue has more information and needs another look and removed s/needs-repro Attach a solution or code which reproduces the issue labels Jan 10, 2025
@RoiChen001 RoiChen001 added s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage platform/iOS 🍎 labels Jan 13, 2025
@RoiChen001
Copy link

I can repro this issue at iOS platform on the latest 17.13.0 Preview 2.1(9.0.0 & 9.0.22).BTW, I can't verify this on .net8 because a System.MissingMethodException is thrown.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-controls-shell Shell Navigation, Routes, Tabs, Flyout platform/iOS 🍎 s/needs-attention Issue has more information and needs another look s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants