Skip to content

Revert "[iOS] Auto Resize chrome icons on iOS to make it more consistent with other platforms - TabBar" - #30932

Closed
rmarinho wants to merge 1 commit into
net10.0from
revert-29093-AutoResizeIconsProperty
Closed

rmarinho wants to merge 1 commit into
net10.0from
revert-29093-AutoResizeIconsProperty

Conversation

@rmarinho

@rmarinho rmarinho commented Jul 30, 2025 •

Copy link
Copy Markdown
Member

Reverts #29093

@kubaflo seems we might need to check whats going wrong as this is failing the tests.

Copilot AI review requested due to automatic review settings July 30, 2025 14:55
@rmarinho
rmarinho requested a review from a team as a code owner July 30, 2025 14:55

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR reverts a previous implementation that added automatic icon resizing functionality for iOS tab bars to make them more consistent with other platforms. The revert removes the auto-resize feature and returns to the original behavior.

  • Removes the AutoResizeTabBarImage method from TabbedViewExtensions that handled icon sizing based on Apple's guidelines
  • Eliminates the rendering mode preservation logic in UIImageExtensions.ResizeImageSource
  • Removes all test files and UI test cases related to the auto-resize functionality

Reviewed Changes

Copilot reviewed 13 out of 22 changed files in this pull request and generated no comments.

Show a summary per file
File Description
UIImageExtensions.cs Simplifies ResizeImageSource by removing rendering mode preservation
TabbedViewExtensions.cs Removes AutoResizeTabBarImage method and related size constants
TabbedRenderer.cs Removes trait collection change handling and icon resizing logic
ShellSectionRenderer.cs Removes auto-resize call for shell section icons
ShellItemRenderer.cs Removes trait collection change handling for shell items
PublicAPI.Unshipped.txt Removes API entries for TraitCollectionDidChange overrides
Test files Deletes all test cases and UI definitions for the auto-resize feature
Comments suppressed due to low confidence (2)

src/Controls/src/Core/PublicAPI/net-maccatalyst/PublicAPI.Unshipped.txt:261

  • This is a potentially breaking change as it removes public API overrides for TraitCollectionDidChange. Since this is a revert, please ensure this change is appropriate for the current version being released and consider the impact on consumers who may have been relying on this behavior.
~override Microsoft.Maui.Controls.HorizontalStackLayout.ComputeConstraintForView(Microsoft.Maui.Controls.View view) -> void

@rmarinho rmarinho closed this Jul 31, 2025
@rmarinho
rmarinho deleted the revert-29093-AutoResizeIconsProperty branch July 31, 2025 14:08
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 31, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants