iosxcodelaunch-screen

Add Launch Screen Image instead of using LaunchScreens.storyboard for iOS


I'm doing my UI for my iOS apps programmatically. The only things that is left is the LaunchScreen.storyboard where I didn't find a way around using it, yet. Strangely I can't find much about that in the internet.

Is there a way to get rid of it and use an AssetSet instead?

LaunchScreen.storyboard

That's (the highlighted file) what I want to get rid of


Solution

  • Since the question included "use a View or and UIImage instead?"

    From Apple's docs...

    Static Launch Screen Images

    It’s best to use an Xcode storyboard for your launch screen, but you can provide a set of static images if necessary.

    Reference page, including a list of required image sizes: https://developer.apple.com/design/human-interface-guidelines/ios/icons-and-images/launch-screen/

    Note: To use images instead of a storyboard...

    In Xcode open your Assets catalog (or create a new one), right-click in the assets section and select App Icons & Launch Images -> New iOS Launch Image and it will create the proper template. Also go to project General settings and select Launch Images Source - Use Asset Catalog...