title: Video trim after recording ios 10
body: <p>I would like to be able to trim a video after recording or selecting it from the photo library. I use <code>videoMaximumDuration</code> to limit the time and that works like a charm but when a video is too long, on iOS 10 the trim selector doesn't shows. I tried the same on iOS 11 and it works. </p>
  
  <p>How can I fix this for iOS 10?</p>
  
  <p>This is my code.</p>
  
  <pre><code>func startCameraFromViewController(viewController: UIViewController, withDelegate delegate: UIImagePickerControllerDelegate &amp; UINavigationControllerDelegate, sourceType: UIImagePickerControllerSourceType) -&gt; Bool {
      let cameraController = UIImagePickerController()
      cameraController.delegate = delegate
      cameraController.sourceType = sourceType
      cameraController.mediaTypes = [kUTTypeMovie as NSString as String]
      cameraController.allowsEditing = true
      cameraController.videoMaximumDuration = 30.0
  
      present(cameraController, animated: true, completion: nil)
      return true
  }
  </code></pre>
  
  <p>This is what happens on ios 10.<img src="https://i.stack.imgur.com/Qq6kc.png" alt=""></p>
  
  <p>And this is on ios 11.<img src="https://i.stack.imgur.com/MwBkn.jpg" alt=""></p>