HomeiOS DevelopmentiOS 26 and .NET MAUI 9 - Flyout Hamburger Icon and Again...

iOS 26 and .NET MAUI 9 – Flyout Hamburger Icon and Again button colour being overwritten by iOS look


I’ve a .NET MAUI Shell utility with a Flyout menu focusing on .NET 9. The Motion Bar in each Mild and Darkish mode is ready to be black. I need the hamburger menu icon and the again button to be white in each circumstances.

After I examined on iOS 26.0 these icons usually are not displaying appropriately. They present as white, as anticipated, in Darkish Mode. However in Mild Mode they are not taking my customized colours.

iOS 26 and .NET MAUI 9 – Flyout Hamburger Icon and Again button colour being overwritten by iOS look

There appears to be a distinction between how iOS handles the colour of the Hamburger menu and Again button in iOS 26.0 and iOS 18.6.

In iOS 18.6, these buttons present as white on the black background as anticipated. However in iOS 26.0 they’re continually being proven as Black. The OS appears to be overwriting the colours I set in my app.

This is the distinction for the Menu merchandise:
Menu Item differences between iOS 26.0 and iOS 18.6

And here is the distinction for the Again button
Back button difference between iOS 26.0 and iOS 18.6

I’ve the useful resource dictionary in my App.xaml as follows:

    <Type TargetType="NavigationPage">
        <Setter Property="BarBackgroundColor" Worth="{DynamicResource NavigationBarColor}" />
        <Setter Property="BarTextColor" Worth="{DynamicResource NavigationTextColor}" />
    </Type>
    <Type x:Key="BaseStyle" TargetType="Component">
        <Setter Property="Shell.BackgroundColor" Worth="{DynamicResource NavigationBarColor}" />
        <Setter Property="Shell.ForegroundColor" Worth="{DynamicResource NavigationTextColor}" />
        <Setter Property="Shell.TitleColor" Worth="{DynamicResource NavigationTextColor}" />
        <Setter Property="Shell.DisabledColor" Worth="{DynamicResource DisabledButtonTextColor}" />
        <Setter Property="Shell.UnselectedColor" Worth="{DynamicResource MenuBackgroundColor}" />
        <Setter Property="Shell.TabBarBackgroundColor" Worth="{DynamicResource PageBackgroundColor}" />
        <Setter Property="Shell.TabBarForegroundColor" Worth="{DynamicResource NavigationTextColor}" />
        <Setter Property="Shell.TabBarUnselectedColor" Worth="{DynamicResource DisabledButtonTextColor}" />
        <Setter Property="Shell.TabBarTitleColor" Worth="{DynamicResource NavigationTextColor}" />
    </Type>
    <Type TargetType="TabBar" BasedOn="{StaticResource BaseStyle}" />
    <Type TargetType="FlyoutItem" BasedOn="{StaticResource BaseStyle}" />

The NavigationBarColor and NavigationTextColor are the identical in each Mild and Darkish themes right here:

<Shade x:Key="NavigationBarColor">#1F1F1F</Shade>
<Shade x:Key="NavigationTextColor">#FFFFFF</Shade>

I can not discover something particular on-line concerning this subject and iOS model. What do I have to do get iOS 26.0 to point out the hamburger menu merchandise and again button appropriately?

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments