How to implement Camera in SwiftUI?

How to implement Camera in SwiftUI? Any ideas?

Replies

Could you explain what you are looking for ?


Is it a general question about using AVPlayer in SwiftUI ?

If so, may have a look here:

https://stackoverflow.com/questions/57024870/swiftui-beta-5-how-to-properly-code-avplayer-after-loading-a-video-from-the-de

The way they did it was to embed the view controller in a ZStack and then hide it with a bool. That's not how it would be done normally, but I have found when I looked into a EKEditEventViewController, that one can only dismiss is once and after the first dismissal, the delegate is not called.