How to create Custom Launch Screen with delay of actual App Loading Time in Swift ? Can somebody please tell me, how to do that? I create Custom Launch Screen using Storyboard, but i dont know how to calculate the Application Loading Time.
Asked
Active
Viewed 1,131 times
-5
-
3Why? Let your users use your app as soon as possible. Don't needlessly make your users wait. – rmaddy Sep 05 '18 at 04:54
-
@rmaddy I want to use actual Loading time. – Rahul Chopra Sep 05 '18 at 04:57
-
I have no idea what you mean by that. – rmaddy Sep 05 '18 at 04:58
-
Application loading time? What did you mean by saying that? – Mannopson Sep 05 '18 at 05:56
1 Answers
-2
If I understand your question you can set a delay with thread.sleep in the AppDelegate class:
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
Thread.sleep(forTimeInterval: 3.0)
// Override point for customization after application launch.
return true
}
Michele

iMichele
- 51
- 7