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

Kim Strasser 811 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,806 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,117 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 28,321 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.