We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e0210f4 + 6b1a83c commit aa18c4fCopy full SHA for aa18c4f
1 file changed
scanner/src/iosMain/kotlin/ScannerView.kt
@@ -155,7 +155,6 @@ class ScannerCameraCoordinator(
155
previewLayer = AVCaptureVideoPreviewLayer(session = captureSession).also {
156
it.frame = layer.bounds
157
it.videoGravity = AVLayerVideoGravityResizeAspectFill
158
- setCurrentOrientation(newOrientation = UIDevice.currentDevice.orientation)
159
layer.addSublayer(it)
160
}
161
@@ -194,5 +193,7 @@ class ScannerCameraCoordinator(
194
193
195
fun setFrame(rect: CValue<CGRect>) {
196
previewLayer?.setFrame(rect)
+
197
+ setCurrentOrientation(newOrientation = UIDevice.currentDevice.orientation)
198
199
0 commit comments