简体   繁体   中英

Making a launch screen using SwiftUI

Apple's recommendation is that an app launch screen not be a logo or something artistic, but instead look like a static version of the app's opening screen in order to create the impression of responsiveness. I want to try to do that, but my the challenge is that my opening screen was created entirely with SwiftUI. It would be a huge pain to try to recreate my SwiftUI screen using storyboards. Is there a way to make a SwiftUI-based launch screen for an app to replace the LaunchScreen.storyboard?

Is there a way to make a SwiftUI-based launch screen for an app to replace the LaunchScreen.storyboard?

No. A launch screen is not based in any programming language or code. By definition, when the launch screen appears, none of your code has run yet.

Note however that a full reconstruction of your opening screen is not at all necessary. A background of the right color, and, say, a navigation bar if the app has one, is quite sufficient.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM