Hey everyone, I'm having a problem implementing the camera preview layer with UIKitView. I tried all known variations, but they are not working for me. But, if I implement it without UiController or UiKitView (like a fullscreen camera), It's working fine. Can you help me with my problem?
j
james
01/06/2025, 6:09 AM
hey Sam, do you want to describe the problem you’re having? I have done extensive work with streaming camera data from an iOS
AVCaptureSession
and displaying it in pure composables as well as within a UIKitView, so perhaps I can help
s
Sam
01/08/2025, 8:21 PM
Hey @james, thank you for the answer. I have resolved this problem. But currently, I am getting a new one... Maybe you know how to force orientation? I get the function that rotates the screen programmatically but the device still reacts to sensors and when I rotate the device the screen rotates too.