Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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