Created
May 28, 2020 23:54
-
-
Save aheze/4d34c88f3c8a0f79bf27caf6fa18e949 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) { | |
// Use this method to optionally configure and attach the UIWindow `window` to the provided UIWindowScene `scene`. | |
// If using a storyboard, the `window` property will automatically be initialized and attached to the scene. | |
// This delegate does not imply the connecting scene or session are new (see `application:configurationForConnectingSceneSession` instead). | |
guard let _ = (scene as? UIWindowScene) else { return } | |
/// ↓ 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 ↑ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment