3

I have set up UIVideoEditorController as followed

if UIVideoEditorController.canEditVideo(atPath: video.path) {
    let editController = UIVideoEditorController()
    editController.videoPath = video.path
    editController.delegate = self
    present(editController, animated:true)
}

It will end up in the cancel delegate call and then dismisses the editor

    func videoEditorControllerDidCancel(_ editor: UIVideoEditorController) {
        print("in here")
        editor.dismiss(animated: true, completion: nil)
    }

Does anyone know why this is or if I need additional configurations to get it to work?

swiftcode123
  • 105
  • 5

0 Answers0