Various fixes

This commit is contained in:
Ilya Laktyushin
2023-07-06 21:28:29 +02:00
parent 7b9836682d
commit a4297cf1c5
27 changed files with 577 additions and 200 deletions

View File

@@ -32,8 +32,7 @@ public class CameraSimplePreviewView: UIView {
} else {
statusBarOrientation = UIApplication.shared.statusBarOrientation
}
let videoOrientation: AVCaptureVideoOrientation = statusBarOrientation.videoOrientation
// videoPreviewLayer.frame = view.layer.bounds
let videoOrientation = statusBarOrientation.videoOrientation
self.videoPreviewLayer.connection?.videoOrientation = videoOrientation
self.videoPreviewLayer.removeAllAnimations()
}