-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[iOS] [Android] Fix for Shell custom FlyoutIcon display problem #26016
base: main
Are you sure you want to change the base?
[iOS] [Android] Fix for Shell custom FlyoutIcon display problem #26016
Conversation
Hey there @Tamilarasan-Paranthaman! Thank you so much for your PR! Someone from the team will get assigned to your PR shortly and we'll get it reviewed. |
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
@@ -336,7 +336,7 @@ void UpdateLeftToolbarItems() | |||
if (image != null) | |||
{ | |||
icon = result?.Value; | |||
icon = ResizeImage(result?.Value, new CGSize(23f, 23f)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is iOS the only one that doesn't resize?
Is this size correct under all the screen options? (@2x etc) https://developer.apple.com/design/human-interface-guidelines/toolbars
@@ -0,0 +1,27 @@ | |||
#if !WINDOWS | |||
// In Windows, the foreground color is not applied to the custom icon, | |||
// so as of now, the test is not applicable for Windows. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Windows is the only one having a different behavior, right?
Could you open a new issue and include the link in the comment.
Issue 1: Foreground color of the custom flyout icon is not applied.
Root Cause of the issue
Description of Change
Issue 2: The flyout icon is aligned to the center instead of the left, causing the title to extend beyond the view.
Root Cause of the issue
Description of Change
Reference for icon size: https://github.com/dotnet/maui/blob/main/src/Controls/src/Core/Compatibility/Handlers/Shell/iOS/ShellPageRendererTracker.cs#L450
Issues Fixed
Fixes #25920
Tested the behaviour in the following platforms
Screenshot
iOS
Android"