2
votes

I just would like to set a LaunchScreen image using an image from the Assets.xcassets file.

In Assets.xcassets, I'm adding a "New iOS Launch Image", and provide the image in PNG.

In Project > General > App Icons and Launch Images, I have the settings below:

App Icons Source: [AppIcon] (->) (Clicking the arrow leads to the Assets folder.)

Launch Screen File: LaunchScreen (No arrow, nothing.)

There is no "Launch Image Source" option for some reason, I keep seeing it in all other solution suggestions online about this LaunchScreen issue.

These are the relevant files I have in my Xcode project file tree:

Assets.xcassets LaunchScreen.storyboard

Results: LaunchScreen is just appearing empty...

I have done a lot of Googling, checked many posts about this. Tried deleting the application and the project itself and retrying from scratch several times... I'm quite lost.

What am I doing wrong here? I just would like to display a LaunchScreen image from Assets.xcassets...

PS: Sorry for not being able to embed images, SO only allows me to include URLs to images until I collect more reputation points, which I find total nonsense.

1

1 Answers

1
votes

Now in Xcode 11 we can't set the launch image from "App Icons and Launch Images" section in the general tab and stoaryboard is the only way to design the launch screen. The "launch screen file" tells the storyboard name which will be loaded on the app launch.

Place the UIImageView in the LaunchScreen.storyboard and set your imageview with the asset you want from Assets.xcassets.Check this image for reference