Skip to content

Instantly share code, notes, and snippets.

@seyitcodeit
Last active July 6, 2021 18:43
Show Gist options
  • Save seyitcodeit/5639f45901015afd856accaff38a2031 to your computer and use it in GitHub Desktop.
Save seyitcodeit/5639f45901015afd856accaff38a2031 to your computer and use it in GitHub Desktop.
Builder implementation for Article
@main
class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
let builder = Builder()
let viewController = builder.makeNewsViewController()
let navigationController = UINavigationController(rootViewController:viewController)
window = UIWindow(frame: UIScreen.main.bounds)
window?.rootViewController = navigationController
window?.makeKeyAndVisible()
return true
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment