title: How to present a view controller with smaller size
body: <p>I want presented view controller vc2 in smaller size than the screen, how to do that in Swift 3 ?? Thanks for help.
  This is my code:</p>
  
  <pre><code>@IBAction func leftButtonPressed(_ sender: UIButton) {
      let vc2 = self.storyboard?.instantiateViewController(withIdentifier: "Controller2") as! ViewController2
      vc2.modalPresentationStyle = .currentContext
  
      present(vc2, animated: true, completion: nil)
  }
  </code></pre>