Search code examples
iosswiftsplash-screenlaunch-screen

Increases Time of Splash Screen in Swift 4


I am working in a Swift 4 project and I had set the LaunchScreen.storyboard. I want to increase the display time of it.

I have seen solutions over here but they are in Objective-C, but I want a solution in Swift. Does anybody know how can I achieve this.


Solution

  • Best approach is make a fake splash screen.

    And The hack solution is that, create a thread with time interval, Add the following code in appDelegate method didFinishLaunchingWithOptions

    Do not do this type of approach, because this approach also may lead to rejection from App Store.

    Thread.sleep(forTimeInterval: 3)