Skip to content

Instantly share code, notes, and snippets.

View j-nguyen's full-sized avatar

Johnny Nguyen j-nguyen

View GitHub Profile
@j-nguyen
j-nguyen / iOSProject.md
Last active May 28, 2021 06:59
Setting up iOS Programmatically

Steps to creating iOS Project - Programmatically

Step 1 - Create the iOS Project

Create the XCode project, set-up whatever app name and organization name you want.

Step 2 - Removing Storyboard

Delete main.storyboard. Then go into info.plist and delete the key-value, Main storyboard file base name.

@j-nguyen
j-nguyen / iPhoneX.md
Created September 23, 2017 16:40
Supporting iPhone X

Supporting iPhone X Sizes

Using Storyboard

To support the new sizes, Apple gave us a new constraint, called the safeLayoutGuide margin. Basically, Apple has already adjusted the sizes for you.

Make sure it looks like this (Just make sure the safeAreaLayoutGuide is ticked):

Storybaord