개발/swift

Swift everything about launch screen

lemonade 2020. 11. 7. 10:00
반응형

How to implement launch screen?

 

Launch screen guidelines.

 

Launch Screen - Visual Design - iOS - Human Interface Guidelines - Apple Developer

Launch Screen A launch screen appears instantly when your app starts up and is quickly replaced with the app's first screen, giving the impression that your app is fast and responsive. The launch screen isn’t an opportunity for artistic expression. It’

developer.apple.com

 

There are multiple ways in implement launch screen.

  • Using a storyboard (default)

  • Using a plist configuration in which you can set (only available Xcode 12+)

 

Using Storyboard )

 

Use default launchScreen.storyboard file.

Don't forget to set in project settings.

 

 

Using Plist)

 

Set launch screen in info.plist file.

 

C

Custom launch screen in info.plist

 

 

Launch screen update issue)

 

If you ever implement launch screen, you would run into situations in which your launch screen doesn’t update. 

 

IOS caches your loading views as an image to improve performance. 

So if you want to see an updated screen immediately, you might clear the cache.

You man try

  • Clean Your build folder using product -> clean build folder

  • Remove app from the simulator and reinstall

  • reset the simulator

 

It doesn’t helpful at all :( 

This is time-consuming and doesn’t make you really productive.

 

 

 

Happy coding :)

 

 

반응형
그리드형

'개발 > swift' 카테고리의 다른 글

Swift URLComponents  (0) 2020.11.12
Swift @available and #available  (0) 2020.11.10
Swift how to fix autolayout issue?  (0) 2020.11.05
Swift UICollectionView performBatch  (0) 2020.11.04
Swift mutating function  (0) 2020.11.01