Repository navigation
[iOS] Auto Resize chrome icons on iOS to make it more consistent with other platforms - TabBar - #29093
Merged
Conversation
jsuarezruiz
suggested changes
Apr 21, 2025
kubaflo
force-pushed
the
AutoResizeIconsProperty
branch
from
April 21, 2025 22:34
16e846e to
a52a3d7
Compare
kubaflo
force-pushed
the
AutoResizeIconsProperty
branch
from
June 19, 2025 23:00
a52a3d7 to
5f7c63f
Compare
kubaflo
marked this pull request as ready for review
June 19, 2025 23:13
PureWeen
requested changes
Jun 20, 2025
Member
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR implements automatic resizing of tab bar icons on iOS to improve consistency with other platforms. The feature automatically scales tab bar icons according to Apple's Human Interface Guidelines while preserving aspect ratios.
- Adds
AutoResizeTabBarImagemethod that applies platform-specific size constraints based on device traits - Updates both TabbedPage and Shell renderers to use the auto-resizing functionality
- Includes trait collection change handling to update icon sizes when device orientation changes
Reviewed Changes
Copilot reviewed 13 out of 17 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
UIImageExtensions.cs |
Adds blank line (formatting only) |
TabbedViewExtensions.cs |
Implements core auto-resize logic with Apple HIG size constants |
TabbedRenderer.cs |
Integrates auto-resize into TabbedPage handler with trait change support |
ShellSectionRenderer.cs |
Applies auto-resize to Shell section icons |
ShellItemRenderer.cs |
Handles trait changes for Shell item icons |
PublicAPI.Unshipped.txt |
Documents new public API surface |
| Test files | Adds UI test cases for both TabbedPage and Shell scenarios |
Comments suppressed due to low confidence (1)
src/Controls/tests/TestCases.HostApp/Issues/Issue29091Shell.xaml:10
- The test case UI is missing AutomationId elements. According to the coding guidelines, AutomationIds should be unique and present for test elements. The ContentPage should have an AutomationId like "Tab1" to match the test expectation in Issue29091Shell.cs.
<ContentPage IconImageSource="groceries.png"
kubaflo
force-pushed
the
AutoResizeIconsProperty
branch
from
July 27, 2025 14:34
5bdf658 to
80d0dbe
Compare
rmarinho
previously approved these changes
Jul 28, 2025
Member
|
Does this need new snapshots @kubaflo ? |
Contributor
Author
|
@jfversluis it looks like Mac needed one. Fixed |
Member
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
Member
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
jfversluis
approved these changes
Jul 29, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of Change
Screen.Recording.2025-03-02.at.16.23.32.mov
Screen.Recording.2025-03-02.at.16.22.18.mov
Fixes #29091