The background color of my LaunchScreen.storyboard is not displayed on my iPad

Kim Strasser 816 Reputation points
2024-06-26T22:05:42.0566667+00:00

I have created a launch screen in my iOS project on my iMac. After that I have copied my iOS project to my Windows 11 laptop. But the problem is that the background color of my launch screen is not displayed when I debug my game on my iPad. The background color is always white but I set another color when I created the launch screen on my iMac.

Why is the background color of my LaunchScreen.storyboard not displayed correctly? Is it possible to open a .storyboard file in Visual Studio on Windows 11 or can I only open it on my iMac?

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,860 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,188 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 28,881 Reputation points Microsoft Vendor
    2024-06-27T06:50:39.6066667+00:00

    Hello,

    In the same project as the previous thread and you are using MonoGame, right?

    You could open the LaunchScreen.storyboard in VS(Windows) with source code, find the Color key in the view of the ViewController, then you can change the color.

    <!--please test if the color changes to yellow-->
    <color key="backgroundColor" systemColor="systemYellowColor" />
    

    For example:

    <scenes>
    <!--View Controller-->
    <scene sceneID="EHf">
    <objects>
    <viewController id="01J-lp-oVM" sceneMemberID="viewController">
    <layoutGuides>
    <viewControllerLayoutGuide type="top" id="Llm-lL-Icb" />
    <viewControllerLayoutGuide type="bottom" id="xb3-aO-Qok" />
    </layoutGuides>
    <view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3">
    <rect key="frame" x="0.0" y="0.0" width="600" height="600" />
    <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES" />
    <!--find the color and change it-->
    <color key="backgroundColor" systemColor="systemYellowColor" />
    </view>
    </viewController>
    <placeholder placeholderIdentifier="IBFirstResponder" id="iYj-K1" userLabel="First Responder" sceneMemberID="firstResponder" />
    </objects>
    <point key="canvasLocation" x="53" y="375" />
    </scene>
    

    Best Regards,

    Wenyan Zhang


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


  2. Kim Strasser 816 Reputation points
    2024-07-12T20:30:39.87+00:00

    It works now. I opened my storyboard file in Xcode on my iMac and I changed the option Builds for from Deployment Target (15.0) to iOS 17.0 and Later in the File Inspector. Then I did a Clean&Build on my iOS project on my iMac.

    Bildschirmfoto 2024-07-12 um 22.19.25

    After that I added the storyboard file to my iOS project in Visual Studio on Windows 11 and I did a Clean&Build on my iOS project.

    Will my launch screen get displayed on devices that use an iOS version that is less than iOS 17.0?