Skip to content
This repository has been archived by the owner on Oct 10, 2024. It is now read-only.

Commit

Permalink
fix(ios, build): fixed ios issue and set default entrypoint to cjs
Browse files Browse the repository at this point in the history
  • Loading branch information
thegnuu committed Nov 23, 2022
1 parent 1820fff commit 73db101
Show file tree
Hide file tree
Showing 4 changed files with 796 additions and 1,146 deletions.
5 changes: 3 additions & 2 deletions ios/Plugin/Plugin.swift
Original file line number Diff line number Diff line change
Expand Up @@ -222,8 +222,9 @@ public class BarcodeScanner: CAPPlugin, AVCaptureMetadataOutputObjectsDelegate {
private func dismantleCamera() {
// opposite of setupCamera

if (self.captureSession != nil) {
DispatchQueue.main.async {

DispatchQueue.main.async {
if (self.captureSession != nil) {
self.captureSession!.stopRunning()
self.cameraView.removePreviewLayer()
self.captureVideoPreviewLayer = nil
Expand Down
Loading

0 comments on commit 73db101

Please sign in to comment.