Group Group Group Group Group Group Group Group Group

webRTC development with iOS and swiftUI

I have been on the search for an example/tutorial on webRTC video-in playing on an iOS app, preferably SwiftUI (or can use UIRepresentable)… It would be awesome if RW team can make a post on it. Are there any good blogs/posts/repo you might suggest I take a look at ?

struct RemoteView : UIViewRepresentable {
@Binding var video: VideoCall
@Binding var remoteView: RTCEAGLVideoView
func updateUIView(_ uiView: RTCEAGLVideoView, context: UIViewRepresentableContext) {
}

func makeUIView(context: Context) -> RTCEAGLVideoView  {
    self.remoteView.frame = CGRect(x: 20, y: 20, width: 200, height: 300)
    self.remoteView = self.video.remoteVideoView!
    return self.remoteView
}

}
I called this from another swiftui struct as

VStack()
{
RemoteView()
}
but i am getting compiler error