Skip to content

Instantly share code, notes, and snippets.

@aheze
Created May 29, 2020 03:04
Show Gist options
  • Save aheze/f6c91e95a1f091efcc374c40aaca2d95 to your computer and use it in GitHub Desktop.
Save aheze/f6c91e95a1f091efcc374c40aaca2d95 to your computer and use it in GitHub Desktop.
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
// Override point for customization after application launch.
/// ↓ ADD THIS ↓
if let rootWindow = window {
let iPhoneXSize = CGSize(width: 375, height: 812) /// if you're running this on an iPhone X, delete this line...
//let iPhone8Size = CGSize(width: 375, height: 667) /// ...and uncomment this line
Projector.display(rootWindow: rootWindow, testingSize: iPhoneXSize)
}
/// ↑ ADD THIS ↑
return true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment