title: How to crop a 4*3 image in photoLibrary or camera in swift
body: <p>I want to crop the image after using camera or select from photoLibrary.</p>
  
  <p>For now, I can only crop the square image and I have no idea how to crop a 4*3 image.</p>
  
  <p>Here is my part of code </p>
  
  <pre><code>let imagePicker : UIImagePickerController = UIImagePickerController()
  imagePicker.delegate = self
  imagePicker.sourceType = .PhotoLibrary
  imagePicker.allowsEditing = true
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/cW6sP.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/cW6sP.png" alt="enter image description here"></a> </p>