title: How to expand camera view to full screen in swift - UIImagePickerController
body: <p>I am using UIImagePickerController to snap a photo with a pone and use that photo in the app later.</p>
  
  <p>This is my code for starting a camera:</p>
  
  <pre><code>imagePicker = UIImagePickerController()
  imagePicker.delegate = self
  imagePicker.sourceType = .Camera
  imagePicker.showsCameraControls = false
  imagePicker.cameraOverlayView = customViewTakePhoto()
  
  presentViewController(imagePicker, animated: true, completion: nil)
  </code></pre>
  
  <p>It all works fine, the camera starts, I am able to fetch photo once it's taken, but there is only one thing I cannot figure out, and that is:</p>
  
  <p>How to make camera view across the entire screen, before the photo is taken?</p>
  
  <p>Here are the images showing exactly what I need</p>
  
  <p>This is my View as it is right now (I highly recommend the book, btw):</p>
  
  <p><a href="https://i.stack.imgur.com/i8E3o.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/i8E3o.jpg" alt="enter image description here"></a></p>
  
  <p>and this is what I need (Fullscreen camera view):</p>
  
  <p><a href="https://i.stack.imgur.com/cy0iM.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/cy0iM.jpg" alt="enter image description here"></a></p>