How to programmatically setup your app with Scene Delegate in Swift

Up to iOS 12 the AppDelegate would deal with process level events informing when the application launched and terminated and letting you know the state of its UI with UI lifecycle methods like did enter background or foreground events. This made the AppDelegate the perfect place for developers to configure the UIWindow container to programmatically launch the entry point of the application. This was fine in a world of single window applications…