Skip to content

Changing Shell.NavBarIsVisible does not update the nav bar on Mac / iOS #17550

@spadapet

Description

@spadapet

Description

Setting Shell.NavBarIsVisible should be able to change the visibility of the shell's nav bar on the fly. It works on other platforms, just not Mac.

This is a follow-up from this bug:

The same bug was fixed for Windows and Android with this PR:

But Mac needs a different fix.

Steps to Reproduce

  1. Open test project on VS for Mac:
  2. Build and run on either local Mac or iOS simulator
  3. Open AppShell.xaml
  4. Change:
    • Shell.NavBarIsVisible="True"
    • to: Shell.NavBarIsVisible="False"

Result:
The nav bar still shows (the bar with "Home" in it)

Expect:
Hide the nav bar

Doesn't matter if XAML Hot Reload is used or if the property is changed in code (same thing, same result)

Link to public reproduction project repository

https://github.com/spadapet/maui_bugs.git

Version with bug

8.0.0-rc.1.9171

Is this a regression from previous behavior?

No, this is something new

Last version that worked well

Unknown/Other

Affected platforms

iOS, macOS

Affected platform versions

iOS 11 and up, MacCatalyst 13.1 and up (just from the default csproj file)

Did you find any workaround?

No response

Relevant log output

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-controls-shellShell Navigation, Routes, Tabs, Flyoutp/2Work that is important, but is currently not scheduled for releasepartner/cat 😻this is an issue that impacts one of our partners or a customer our advisory team is engaged withpartner/hot-reload-xamlIssues impacting XAML Hot Reload experiencespartner/syncfusionIssues / PR's with Syncfusion collaborationplatform/macosmacOS / Mac Catalystpotential-regressionThis issue described a possible regression on a currently supported version., verification pendings/triagedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions