[Swift5] How to create a splash screen

What is a splash screen?

The screen that is displayed when you launch the application is called the Splash screen or Launch Screen. In the application, it is one of the few screens that the user cannot operate.

For example, it's an anno screen where the twitter and Line icons are displayed in the center.

By default, a blank screen is displayed when the application is launched.

How to make

Splash screens can be created from LaunchScreen.storyboard in Xcode. image.png

Let's color the view like this. Then.

image.png

The color of the view changed when the application was launched. That's all for the basic creation method. If you want to enter characters, you can paste label and edit it.

important point

One caveat is that LaunchScreen.storyboard and Controller do not seem to be linked, and an error will occur if they are linked and built.

So, if you want to create a splash screen with code without using storyboard, or if you want to create a dynamic splash screen, create a new file, create Splash.storyboard (example), and create the storyboard and Controller. If you select the storyboard name created in project / general / App Icon and Launch Images / Launch Screen File, it will be linked with Controller.

Finally

I also touched the splash screen for the first time this time, so if there are any points that cannot be reached, please let me know in the comments. Thank you for reading to the end!

Recommended Posts

[Swift5] How to create a splash screen
How to make a splash screen
How to create a method
[Java] How to create a folder
[Swift] How to send a notification
How to create a Maven repository for 2020
[Swift5] How to implement standby screen using'PKHUD'
[rails] How to create a partial template
I want to create a chat screen for the Swift chat app!
How to create docker-compose
How to create a database for H2 Database anywhere
[Rails] How to create a graph using lazy_high_charts
How to create pagination for a "kaminari" array
How to create a class that inherits class information
How to create a theme in Liferay 7 / DXP
[1st] How to create a Spring-MVC framework project
How to easily create a pull-down in Rails
[Rails] How to create a Twitter share button
How to create an application
How to create a Java environment in just 3 seconds
[Rails] How to create a signed URL for CloudFront
How to create a JDBC URL (Oracle Database, Thin)
How to leave a comment
How to create a Spring Boot project in IntelliJ
[Spring Boot] How to create a project (for beginners)
[Swift] How to use UserDefaults
How to create a data URI (base64) in Java
How to insert a video
[Apple Subscription Offer] How to create a promotional offer signature
How to transition from the [Swift5] app to the iPhone settings screen
How to create a lightweight container image for Java apps
How to create a form to select a date from the calendar
How to create a placeholder part to use in the IN clause
How to create a service builder portlet in Liferay 7 / DXP
How to create and launch a Dockerfile for Payara Micro
How to add columns to a table
Preparing to create a Rails application
How to make a Java container
How to sign a Minecraft MOD
How to write a ternary operator
[Swift] How to use SwiftLint (cocoapods)
[Swift] How to use Unwind segue
How to make a Maven project
Try to create a server-client app
[Swift] How to replace multiple strings
How to make a Java array
How to create a jar file or war file using the jar command
How to create a registration / update function where the table crosses
How to create a new Gradle + Java + Jar project in Intellij 2016.03
How to create a web server on an EC2 instance on AWS
[Swift5] How to communicate from ViewController to Model and pass a value
[Swift5] How to create a .gitignore file and the code that should be written by default
[Xcode] How to add a README.md file
How to execute a contract using web3j
How to sort a List using Comparator
[Swift] Converts a UInt64 type integer to [UInt8]
[Basic] How to write a Dockerfile Self-learning ②
How to insert a video in Rails
How to add a new hash / array
[Swift] How to fix Label in UIPickerView
[Swift] How to use Tab Bar Controller