Last active
April 19, 2017 16:28
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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