Skip to content

Instantly share code, notes, and snippets.

@hanksudo
Last active December 8, 2020 03:23
Show Gist options
  • Save hanksudo/41528f5b55d8d32d0991adae3e208009 to your computer and use it in GitHub Desktop.
Save hanksudo/41528f5b55d8d32d0991adae3e208009 to your computer and use it in GitHub Desktop.
Initial iOS project without Storyboard (remove storyboard)
  1. Remove Main.storyboard file
  2. Remove Main interface in Deployment Info

Screen Shot 2020-12-08 at 12 11 07

  1. Remove UISceneStoryboardFile key in Info.plist
<key>UISceneStoryboardFile</key>
<string>Main</string>
  1. Create main window in SceneDelegate.swift
func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) {
    guard let windowScene = (scene as? UIWindowScene) else { return }
  
    let window = UIWindow(windowScene: windowScene)
    window.rootViewController = ViewController()
    window.makeKeyAndVisible()
    self.window = window
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment