Skip to content

[iOS, Android, Catalyst] Shell.ForegroundColor does not reset correctly for the back button. #33909

@NafeelaNazhir

Description

@NafeelaNazhir

Description

The Shell.ForegroundColor attached property behaves inconsistently for the back button across platforms, especially when the value is reset to null.

Android:
Resetting Shell.ForegroundColor to null resets the back button color to white. In HostApp it works fine.
iOS:
Resetting Shell.ForegroundColor to null does not reset the back button color. The back button continues to use the previously set foreground color.
MacCatalyst:
Shell.ForegroundColor does not apply to the back button at all. Setting or resetting the property has no visible effect.

Expected Output iOS
Screen.Recording.2026-02-05.103909.mp4
Screen.Recording.2026-02-05.at.10.26.24.AM.mov

Steps to Reproduce

  1. Run the attached sample ForegroundColorIssue 2.zip
  2. Apply a foreground color, navigate to another page and observe the back button color behavior on Android, iOS, and MacCatalyst.
  3. Then tap Remove to reset it, navigate to another page and observe the back button color behavior on Android, iOS, and MacCatalyst.

Expected Behavior:

  • When reset the Shell.Foregroundcolor to null , the back button foreground color should reset to the platform default color on all platforms.

Actual Behavior
Android: back button foreground color changes to white.
iOS: back button foreground color is not reset (retains the previously set color).
Mac: ForegroundColor is not applied .

Link to public reproduction project repository

No response

Version with bug

10.0.30

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

No response

Affected platforms

iOS, Android, macOS

Affected platform versions

No response

Did you find any workaround?

No response

Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions