title: Image to Initially Fill UIImagePickerController
body: <p>In my iOS app I'd like to grab images from the photo library and crop them to square format. The <code>UIImagePickerController</code> takes care of this nicely, but there is one little problem: When I select a landscape-oriented photo from the library it does not fill the crop area (for portrait images it does). That allows the user to select a non-square area. <strong>Is there a way to force the image picker to fill the crop area vertically</strong> just like it does horizontally - without implemeting my own image picker?</p>
  
  <p>My code:</p>
  
  <pre><code>class AddProfileViewController: UIViewController, UIGestureRecognizerDelegate, UIImagePickerControllerDelegate, UINavigationControllerDelegate {
  
      @IBOutlet weak var profileImageView: EnhancedImageView!
      let imagePicker = UIImagePickerController()
  
      override func viewDidLoad() {
          super.viewDidLoad()
  
          // ...
  
          imagePicker.delegate = self
      }
  
      func profileImageTapped() {
          imagePicker.allowsEditing = true
          imagePicker.sourceType = .PhotoLibrary
          presentViewController(imagePicker, animated: true, completion: nil)
      }
  
      func imagePickerController(picker: UIImagePickerController, didFinishPickingMediaWithInfo info: [NSObject : AnyObject]) {
          // ...
      }
  
      func imagePickerControllerDidCancel(picker: UIImagePickerController) {
          dismissViewControllerAnimated(true, completion: nil)
      }
  }
  </code></pre>
  
  <p>Selecting a landscape image, it looks like this:</p>
  
  <p><img src="https://i.stack.imgur.com/iGs2E.jpg" alt="image picker with horizontal image"></p>
  
  <p>Instead, I'd like the image to horizontally and vertically extend to the crop frame, so the image picker will always return a square image.</p>