maui
maui copied to clipboard
Black screen when home menu item icon doesn't exist
Description
When an application has a flyout menu, if the home item (ShellContent) specifies an icon that doesn't exist in the project, the screen is black on iOS.
Steps to Reproduce
- Create a new .NET Maui 7.0 app with all defaults
- Change the AppShell.xaml source to have a menu: a. Delete FlyoutBehavior="Deleted" b. Add Icon="doesnotexist" to the ShellContent c. Add at least one other menu item like: <MenuItem Text="Settings" IconImageSource="dotnet_bot" />
- Execute on an iPhone or iPhone emulator
- Observe the after the splash screen, the screen goes black
- Change the Icon in ShellContent to be dotnet_bot
- After restarting the app, notice that the screen and menu appear
This should behave like it does on Android, with everything else showing, but just blank for an unresolved icon. Very difficult to diagnose what the issue is when the screen is just black.
Link to public reproduction project repository
https://github.com/pengalo/MauiApp1
Version with bug
7.0 (current)
Last version that worked well
Unknown/Other
Affected platforms
iOS
Affected platform versions
All versions of iPhone
Did you find any workaround?
Yes, use an icon that exists. This is more of an annoyance because it took a long time to trace it down to that one icon missing (due to typo).
Relevant log output
No response