Skip to content

[iOS] 9.0.90 breaks ToolbarItem template color for IconImageSources #30818

@doriangh

Description

@doriangh

Description

Hello,
After 9.0.90 MAUI update, this fix changes the image RenderMode from (I think) automatic to alwaysOriginal.
While this is great to show detailed images correctly, in cases (like mine) where there's a single color .svg, the navigation bar tint no longer affects the toolbar items color.
In my case specifically, implementing dark/light mode, setting the BarTextColor would also set the same color for the ToolbarItems (and hamburger icon). After this update, this behavior is no longer present.

I think the ToolbarItem should have a new property ForceColor which will set the imageRenderMode to AlwaysOriginal, keeping the previous behavior existing.
Moreover, a TintColor could be added to specify a TintColor for the image.

Steps to Reproduce

  1. Create a new MAUI project
  2. Add a navigation page
  3. Add a toolbaritem with the IconImageSource to a FileImageSource
  4. Change the BarTextColor
  5. Notice the iconImageSource no longer changes the color based on the BarTextColor

Link to public reproduction project repository

No response

Version with bug

9.0.90 SR9

Is this a regression from previous behavior?

Yes, this used to work in .NET MAUI

Last version that worked well

9.0.82 SR8.2

Affected platforms

iOS

Affected platform versions

No response

Did you find any workaround?

Adding a custom PageHandler that changes the image RenderMode on page load to AlwaysTemplate for the ToolbarItems

Relevant log output

Metadata

Metadata

Assignees

Labels

area-controls-toolbarToolBari/regressionThis issue described a confirmed regression on a currently supported versionplatform/iosregressed-in-9.0.90s/triagedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't working

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions