Skip to content

Instantly share code, notes, and snippets.

@samwarnick
Last active April 19, 2017 16:28
Show Gist options
  • Save samwarnick/8fd3f1df3ce0ef1c2ea68997a99810e2 to your computer and use it in GitHub Desktop.
Save samwarnick/8fd3f1df3ce0ef1c2ea68997a99810e2 to your computer and use it in GitHub Desktop.
What needs to be added to AppDelegate.swift to be able to not use a storyboard
import UIKit
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
window = UIWindow(frame: UIScreen.main.bounds)
window?.rootViewController = YourFirstViewController()
window?.makeKeyAndVisible()
return true
}
// The rest of AppDelage.swift
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment