title: Setting up a ViewController via url and show it as a popup
body: <p>I currently have a method that I use to setup a new ViewController</p>
  <pre><code>func setRootView(viewController vc: UIViewController){
      UIApplication.shared.windows.first?.rootViewController = vc
      UIApplication.shared.windows.first?.makeKeyAndVisible()
  }
  </code></pre>
  <p>How can I modify the presentation that the ViewController will show over the other screen like presentation style not modally ?</p>
  <p>That is the function that gets called after the button is pressed and the view should change:</p>
  <pre><code>func moveToNextVC(isLogin: Bool){
      if self.checkNetworkConnection(){
          let vc = HomeVC(nibName: &quot;HomeVC&quot;, bundle: nil)
          if isLogin{
              vc.modalPresentationStyle = .automatic
              vc.url = loginLink
              
          }else{
              vc.modalPresentationStyle = .automatic
              vc.url = signupLink
              
          }
          setRootView(viewController: vc)
      }
      else{
          showAlert(&quot;Alert!&quot;, message: &quot;Please check your internet connection, then try again.&quot;)
      }
  }
  </code></pre>