I am trying to make a view controller from storyboard as the splash screen in my application using swift 3. I am trying achieve the same effect as the splash screen does while loading the splash using "launch image". Since i have got an animation in the splash screen i wish to use a view controller as the splash screen in Swift 3. How to achieve this?
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
// Override point for customization after application launch.
self.window = UIWindow(frame: UIScreen.main.bounds)
let storyboard = UIStoryboard(name: "Main", bundle: nil)
let initialViewController = storyboard.instantiateViewController(withIdentifier: "splashScreen")
self.window?.rootViewController = initialViewController
self.window?.makeKeyAndVisible()
return true
}