How to present UIVideoEditorController

Viewed 4222

I have never used UIVideoEditorController so I am not sure where to start with it.

I want the view controller to pop up when the user selects a video in my collection view cell.

I already know the URL of the video, so I just need someone to show me how to properly present the view controller.

This is my code so far

func collectionView(_ collectionView: UICollectionView, didSelectItemAt indexPath: IndexPath) {
    let video = videosArray[indexPath.row]

The video variable is the video i want to allow them to edit

1 Answers
Related