title: SceneDelegate switch between uiwindows in iOS 13
body: <p>I need to load a uiwindow from my storyboard and place this above all other windows. From what I've seen online the process for this has changed with iOS 13.</p>
  
  <p>I'm aware of other <a href="https://stackoverflow.com/questions/58188296/how-set-rootviewcontroller-in-scene-delegate-ios-13">answers</a> that show how to set a new root VC at start up. However I need to change rootVCs back and forth between multiple view controllers within my storyboard based on user action.</p>
  
  <p>At the moment I'm running the following 'pre-ios13' code but I'm getting warnings that this approach is no longer supported.</p>
  
  <pre><code>blackoutWindow.frame = UIScreen.main.bounds
  blackoutWindow.backgroundColor = .black
  blackoutWindow.windowLevel = UIWindow.Level.statusBar + 1
  blackoutWindow.rootViewController = self as? UIViewController
  blackoutWindow.makeKeyAndVisible()
  </code></pre>
  
  <p>Any help appreciated. </p>