Skip to content

Commit

Permalink
fix IOS orientation (capacitor-community#131)
Browse files Browse the repository at this point in the history
Steps to reproduce :
open the app in portrait/landscape mode => rotate => open the camera 

Issue
the CameraView was being loaded when the app starts not with each scan.

Somehow the cameraView doesn't recognize that the app has rotated
  • Loading branch information
scr2em authored Aug 2, 2022
1 parent 2a837bb commit 266a922
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ios/Plugin/Plugin.swift
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,7 @@ public class BarcodeScanner: CAPPlugin, AVCaptureMetadataOutputObjectsDelegate {
// @TODO()
// requestPermission()
} else {
self.load();
self.shouldRunScan = true
self.prepare(savedCall)
}
Expand Down

0 comments on commit 266a922

Please sign in to comment.