//
//  RootRouter.swift
//  Peekazoo
//
//  Created by Thomas Sherwood on 13/05/2017.
//  Copyright © 2017 Peekazoo. All rights reserved.
//

import UIKit

struct RootRouter {

    var window: UIWindow

    init(window: UIWindow) {
        self.window = window
    }

    func navigateToRoot() -> (viewController: UIViewController, router: Any) {
        let homepage = HomepageViewController()
        window.rootViewController = UINavigationController(rootViewController: homepage)
        window.makeKeyAndVisible()

        return (viewController: homepage, router: HomepageRouter())
    }

}

//
//  RootRouter.swift
//  Peekazoo
//
//  Created by Thomas Sherwood on 13/05/2017.
//  Copyright © 2017 Peekazoo. All rights reserved.
//

import UIKit

struct RootRouter {

    var window: UIWindow

    init(window: UIWindow) {
        self.window = window
    }

    func navigateToRoot() -> (viewController: UIViewController, router: Any) {
        let homepage = HomepageViewController()
        window.rootViewController = UINavigationController(rootViewController: homepage)
        window.isHidden = false
        window.makeKey()

        return (viewController: homepage, router: HomepageRouter())
    }

}

--- 
+++ 
@@ -19,8 +19,7 @@
     func navigateToRoot() -> (viewController: UIViewController, router: Any) {
         let homepage = HomepageViewController()
         window.rootViewController = UINavigationController(rootViewController: homepage)
-        window.isHidden = false
-        window.makeKey()
+        window.makeKeyAndVisible()
 
         return (viewController: homepage, router: HomepageRouter())
     }
Use convenience function for preparing window
