We will take more advantage of two of Apple’s view controllers: UIImagePickerController and PHPickerViewController. We were using these classes to get images, now we will also get and record videos.
Chapters:
0:00 Getting Video from Photos and Camera
0:42 Adapting CanvasView to Show Different Media Types
2:57 Getting Video from PHPickerViewController
4:08 Embedding AVPlayerViewController in UIViewControllerRepresentable
6:52 Copying Selected Video to Temporary Directory
10:18 Using UIImagePickerController to Record Video
Source code: https://github.com/codingWithTom/Coll...
Collage playlist: • Collage
Intro song: All That from Bensound.com
Outro song: Endless Motion from Bensound.com