🔨Xcode Project Setup
Fall 2023 | Vin Bui
Last updated
Fall 2023 | Vin Bui
Last updated
Note that we will provide you with the setup in the assignments. However, this will be helpful for when you create a project on your own such as the Hack Challenge.
Go to File > New > Project
Select the iOS tab, choose App and click Next
You can leave everything alone except for the following:
Product Name: Enter the name of the app
Interface: Storyboard (yes, keep Storyboard even though we won’t be using it)
Language: Swift
Uncheck “Use Core Data”
Uncheck “Include Tests”
Choose a directory for your project and hit Create
To utilize programmatic Auto Layout, delete Main.storyboard
from the Navigator in Xcode. Right click > Delete > Move to Trash
Press CMD + SHIFT + F
or click on the 🔎 icon in the Navigator. Look up storyboard
and you should see something like this:
Click on the red box above and look up storyboard
in the filter search bar. Select UIKit Main Storyboard File Base Name
and his Backspace on your keyboard to delete it.
Now select the blue box from step 2, or go to Info.plist
and delete Storyboard Name
by clicking on the minus (-) symbol.
SceneDelegate.swift
Add the following code to the function scene
in SceneDelegate.swift