In iOS, storyboards can be used as the launch screen instead of static images. I am looking for a way to do this with tvOS as well, but I don't see the option. Is there a way to do so?
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.
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.
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:
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
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With