I have a .NET 7 MAUI application that is being used solely for iOS/iPadOS. The splash screen is completely black with nothing visible. The SVG file is an image with no black - only blue and white. This happens in deployment to local devices and simulators, as well as when deploying a Release build IPA to the device.
I have:
loading_screen.svg
file in /Resources/Splash
with a Build Action of MauiSplashScreen
.MauiSplashScreen
tag:<ItemGroup>
<MauiSplashScreen Include="Resources\Splash\loading_screen.svg" />
</ItemGroup>
UILaunchStoryboardName
in Info.plist
for the iOS platform:<key>UILaunchStoryboardName</key>
<string>MauiSplash</string>
UILaunchImageFile
in Info.plist
for the iOS platform (I have also tried changing the extension in the string below to .png
):<key>UILaunchImageFile</key>
<string>Resources\Splash\loading_screen.svg</string>
Firstly, on iOS, when changing the simulator to the version: iOS 16.0, the SplashScreen can be displayed normally.
Also, when adding a new key/value-Pair: UILaunchImageFile
in Info.plist, it only works with PNG format files like below:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
...
<key>UILaunchImageFile</key>
<string>Resources\Splash\your_splash.png</string>
</dict>
</plist>
Last but not least, you can refer to the two threads listed below, they provide an excellent solutions for the customization of SplashScreen on both iOS and Android.