title: Cannot convert value of type "ViewController.Type" to expected argument type "UIViewController"
body: <p>I'm trying to make an Alert Controller in which, if the Answer is "Ok", then it will perform a segue to a MapView. Here's the full code:</p>
  
  <pre><code>@IBAction func teste(_ sender: Any) {
  
      // Create the alert controller
      let alertController = UIAlertController(title: "Reservar vaga?", message: "Uma vaga será reservada em Estapar Estacionamento.", preferredStyle: .alert)
  
      // Create the actions
      let okAction = UIAlertAction(title: "OK", style: UIAlertActionStyle.default, handler: {(alert:UIAlertAction) -&gt; Void in
  
          let confirmAction = UIAlertController(title: "Vaga confirmada", message: "Gostaria de ter direções ao local?", preferredStyle: .alert)
  
          let okConfirmAction = UIAlertAction(title:"Sim", style: UIAlertActionStyle.default, handler:{(alert:UIAlertAction) -&gt; Void in
  
              presentViewController(ViewController, animated: true, completion: nil)
          })
  
          let noConfirmAction = UIAlertAction(title:"Não", style: UIAlertActionStyle.default) {
              UIAlertAction in
              NSLog("Ok Pressed")
          }
  
          confirmAction.addAction(okConfirmAction)
          confirmAction.addAction(noConfirmAction)
          self.present(confirmAction, animated: true, completion: nil)
      })
      let cancelAction = UIAlertAction(title: "Cancelar", style: UIAlertActionStyle.cancel) {
          UIAlertAction in
          NSLog("Cancel Pressed")
      }
  
      // Add the actions
      alertController.addAction(okAction)
      alertController.addAction(cancelAction)
  
      //Append the button to the view
      self.present(alertController, animated: true, completion: nil)
  }
  </code></pre>
  
  <p>I'm having trouble in this part:</p>
  
  <pre><code>let okConfirmAction = UIAlertAction(title:"Sim", style: UIAlertActionStyle.default, handler:{(alert:UIAlertAction) -&gt; Void in
  
      presentViewController(ViewController, animated: true, completion: nil)
  })
  </code></pre>
  
  <p>When i try to use presentViewController, this error appears: "Cannot convert value of type "ViewController.Type" to expected argument type 'UIViewController'"</p>
  
  <p>And when I try to use performSegue, I use is this way: </p>
  
  <pre><code>performSegue(withIdentifier: "teste", sender: (Any).self)
  </code></pre>
  
  <p>And then the following error appears: "Implitcit use of self in closure; use 'self.' to make capture semantics explicit"</p>
  
  <p>Can anyone please help me?</p>