Reputation: 970
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
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