How to pass UIViewRepresentable with a AVSampleBufferDisplayLayer to SwiftUI
When the view loads on device I just have a black screen. I have very similar code working with a Storyboard instance and using UIViewController, but I need to get away from that as I am working with visionOS and would like to abstract this away into using RealityKit and VideoPlayerLayer, but for prototyping and iterating other tasks I would like this AVSampleBufferDisplayLayer to work… which ultimately I will have to pass an AVSampleBufferVideoRenderer to VideoPlayerLayer so getting this implementation works helps me dive into the RealityKit rendering.