Taylor Simpson
Taylor Simpson

Reputation: 970

Capturing Video With SwiftUI and AVFoundation

I've seen some examples of how to do video play back, but haven't found any examples of capturing video with SwiftUI. Does anyone know how to do this? Or does anyone know of any tutorials of how to do this?

Upvotes: 3

Views: 3053

Answers (1)

Frank Rupprecht
Frank Rupprecht

Reputation: 10383

There's no specific "SwiftUI way" for capturing videos, unfortunately. You need to use AVFoundation and some UIKit wrapper code. This tutorial gives a good starting point.

Upvotes: 4

Related Questions