Skip to content

herlandro/NoStoryboard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

No Storyboard UIKit Project

1 - Creating Project in Xcode

  • Create a new single view app project in Xcode.
  • Select Swift as the language and deselect the option to use Storyboard as the interface.

2 - Deleting the Main.storyboard

  • Delete the Main.storyboard file.
  • Remove the Main value config entries in Build Settings.
  • Remove the key UIMainStoryboardFile or Storyboard Nameand value Main in the Info.plist.

3 - Creating a HelloWorldViewController file

  • Create a new file called HelloWorldViewController.swift

4 - Updating SceneDelegate.swift

Replace the content of the function scene(_:willConnectTo:options:) with:

guard let windowScene = (scene as? UIWindowScene) else { return }
window = UIWindow(frame: windowScene.coordinateSpace.bounds)
window?.windowScene = windowScene
window?.rootViewController = HelloWorldViewController()
window?.makeKeyAndVisible()

About

UIKit NoStoryboard

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages