-
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
The FlyoutPage toolbar icon does not work in Android and iOS #24480
Comments
Hi I'm an AI powered bot that finds similar issues based off the issue title. Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you! Open similar issues:
Closed similar issues:
|
I have reverted to using a PNG for the menu icon and that does work in iOS. But none of the other SVGs show up in iOS, but no exception is thrown. That lead me to discover that it looks like it is an issue with the file extension. So it looks like SVG doesn't work because Maui rasterizes SVGs to a PNG and on iOS the extensions cause problems. That does seem like a bug, but maybe one that is more easily worked around. |
Duplicate of #13368 |
@PureWeen I think this might have been marked as a duplicate for the wrong issue. That issue about analyzers doesn't really seem like the same issue. After further testing, it looks like SVGs in iOS just don't work. For example, I set Are SVGs just not supported on iOS right now and I need to switch back to PNGs? |
Description
In an app upgraded from Xamarin.Forms that uses a
FlyoutPage
, the toolbar icon does not work on both platforms, with each behaving differently.On Android, setting
FlyoutPage.IconImageSource
appears to do nothing. The icon seems to always be the default "hamburger" icon.On iOS the app throws an exception saying that it is unable to find the image. This issue may have to do with using an SVG image, since the app previously used a PNG image for the icon and no exception was thrown.
Currently I am unable to provide a reproduction project because some Visual Studio/macOS updates have broken iOS development for new projects. I have been able to get it to work with my real project, but it doesn't work with the project I created to try to reproduce this.
Steps to Reproduce
No response
Link to public reproduction project repository
No response
Version with bug
8.0.80 SR8
Is this a regression from previous behavior?
Not sure, did not test other versions
Last version that worked well
Unknown/Other
Affected platforms
iOS, Android
Affected platform versions
No response
Did you find any workaround?
No response
Relevant log output
No response
The text was updated successfully, but these errors were encountered: