How to create a Launch Screen for iOS now that the iOS Designer has been deprecated

Grime 786 Reputation points
2021-02-15T06:20:20.02+00:00

I know and understand that the iOS designer has been deprecated as of Visual Studio 16.9 and Visual Studio for Mac 8.9.
My question now is... How do you now make an iOS Launch Screen?
Do I have to do it on the Mac?
Can it be done in VS 2019 on the Mac?
Should it be done in Xcode?
Can I then transfer it all back to the PC to polish it off?
I need a bit of hand-holding here.

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,296 questions
0 comments No comments
{count} votes

Accepted answer
  1. Grime 786 Reputation points
    2021-02-27T05:22:08.463+00:00

    @Jovano , @Junior Jiang-MSFT , @Brian Conrad
    I have successfully created an iOS launch screen in VS 2019 on a PC WITHOUT programming it on the Mac (although the laptop WAS paired with the Mac). Thanks goes to @KhaiFMsia over on Forums.Xamarin.com.

    Solution: the launch screen storyboard is simply an XML file. All I wanted to do was to centre an image. Nothing fancy.

    @KhaiFMsia gave me his generic launch screen storyboard as a text file (attached) 72460-ios-launchscreen.txt

    Open this with a text editor and change the TWO instances of:
    image="Icon-60.png"
    to whatever image you load into your project.

    I also edited the
    color key="backgroundColor"
    line to be
    <color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="calibratedRGB"/>
    so the background colour is white.

    Save the file, then in VS 2019. right click on your storyboard, (mine is LaunchScreen.storyboard) and select Open With..., then select XML (Text) Editor. Replace the existing XML code with your new code, save and build.

    That simple. Hooray!


5 additional answers

Sort by: Most helpful
  1. Grime 786 Reputation points
    2021-02-16T06:42:23.09+00:00

    Thankyou @Junior Jiang-MSFT . At least that's a start - we should code iOS apps directly on a Mac. Great!
    Storyboards should be done on the Mac. Great!
    Doesn't work!

    This from VS 2019
    68480-screen-shot-2021-02-15-at-32238-pm.png

    This from Xcode
    68565-screen-shot-2021-02-15-at-32305-pm.png

    Why is it this difficult?

    1 person found this answer helpful.

  2. Junior Jiang-MSFT 11 Reputation points
    2021-02-16T02:59:03.117+00:00

    Hello,

    Welcome to Microsoft Q&A!

    We recommend doing any iOS UI specific work on a Mac now, so if you’re creating Xamarin.iOS controls, you should be within VS Mac or Xcode. You have to have a Mac paired to use the designer/generate the designer.cs files anyways - is there a way you can remote desktop into that Mac to do iOS specific UI work? Also - we are supporting iOS Hot Restart with Xamarin.Forms apps so if you start to migrate over to Xamarin.Forms UIs you can build and debug onto a physical iPhone without the Mac connected at all. Still doesn’t let you do storyboards, but you wouldn’t need them with Xamarin.Forms except for the launch screen!

    Best Regards,

    Junior Jiang

    ----------

    If the response is helpful, please click "Accept Answer" and upvote it.

    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.

    0 comments No comments

  3. Grime 786 Reputation points
    2021-02-16T07:51:00.57+00:00

    @Junior Jiang-MSFT :

    On the Mac:
    MacOS Catalina Version 10.15.7
    Visual Studio for Mac Community Version 8.8.8 (build 12)
    Xcode Version 12.4 (12D4e)


  4. Grime 786 Reputation points
    2021-02-25T05:44:05.057+00:00

    @Brian Conrad Thanks for giving me something!
    I've attempted quite a few Xcode Hello World's in the past weeks. The Android version of this, my first app, was published back in December and has quite a few happy users.
    The iOS version has to have a Launch Screen and it seems that Apple are just playing with us.
    You said "Put a graphic in the Resource folder". I don't have a Resource folder.
    What am I doing wrong?
    71919-screen-shot-2021-02-25-at-32757-pm.png