Can storyboards be used as the launch screen in tvos?
Solution for tvOS 13.1 and better
Starting with tvOS 13.1 using launch images is deprecated.
The following build warning will appear:
MyApp.xcassets:1:1: Launch images are deprecated in tvOS 13.0. Use a launch storyboard or XIB instead.
You need to create a new storyboard in Xcode following this steps:
- From Xcode main menu choose "File" -> "New" -> "File"
- Change to the tvOS Tab and select "Storyboard" - name it "LaunchScreen.storyboard"
- Open the new file "LaunchScreen.storyboard"
- From Xcode main menu choose "View" -> "ShowLibrary"
- Enter "View Controller" in the search bar and select the "ViewController" component
Done. Now you can design your launch screen in the view controllers view
Now select your project file in Xcode and then select the target of yout tvOS app
- Make sure "General" is selected in the header
- Change to the section "App icons and Launch Images"
- In the drop down box "Launch Screen File" select ""LaunchScreen"
- Build and run your app
- Enjoy your new LaunchScreen
If your launch screen storyboard does not show up on app startup make sure that you've set the "InitalViewController" flag for the view controller in your storyboard:
You can now use storyboards, in fact as of tvOS 13.0 it's the preferred method.
It will automatically be set up for you on new projects. For old projects create your launch image story board, make sure "Is initial view controller" is checked in the inspector window. After setting up your storyboard under "Project Setting -> General -> Launch Screen File" you will be able to select your storyboard as the launch file to use.