Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS Xcode LaunchScreen Storyboard not displaying

I'm trying to use Xcode's LaunchScreen storyboard as my launch screen? All the questions that have previously been asked about this refer back to the old launch image or .xib method - trying to do it now with the new LaunchScreen storyboard that Xcode automatically generates instead. I've selected the LaunchScreen storyboard as my launch screen file in my Deployment Info: Deployment Info Image

The storyboard itself confirms that it is set as the launch screen in it's file inspector.

File Inspector of LaunchScreen storyboard

And the info.plist file reflects this as well.

enter image description here

And yet, it doesn't work. The LaunchScreen storyboard never shows - it just goes straight to the first screen in my main storyboard. Using Xcode 7.2 and deploying to iOS 9.

like image 276
A. Vin Avatar asked Apr 29 '16 21:04

A. Vin


People also ask

Why is Main storyboard not showing up in Xcode?

You have SwiftUI enabled in your project, which does not use storyboards anymore. Your layout is inside the ContentView. swift file. If you do want to work the old way, with storyboards, you should uncheck 'Use SwiftUI' in the project creation screen.

How do I use storyboard in LaunchScreen?

storyboard to configure your launch screen. If your project doesn't contain a default launch screen file, add a launch screen file and set the launch screen file for the target in the project editor. Choose File > New > File. Under User Interface, select Launch Screen, and click Next.

What is LaunchScreen storyboard?

The LaunchScreen. storyboard is an interface builder storyboard file that uses auto-layout and some basic constraints on the controls to adjust the display for all the supported devices. Perform this task in the copy of the DeploymentKitApp in Xcode on your computer.

How do I add LaunchScreen to SwiftUI?

Adding a Launch Screen In SwiftUI projects, the launch screen is not generated by default. You need to add it manually in the Info. plist file. After opening the file, you should see an entry named Launch Screen.


2 Answers

Enable these two settings for the LaunchScreen.storyboard

enter image description here enter image description here

like image 117
StackUnderflow Avatar answered Sep 20 '22 15:09

StackUnderflow


If you are using xcode 11.2 you'll need to remove the app and execute it again to see the launch screen. I have to do this every time I modify the launch screen in order to see the new changes.

like image 36
abanet Avatar answered Sep 20 '22 15:09

abanet