capacitor-camera-module 0.0.59 → 0.0.60
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -54,8 +54,8 @@ public class CameraModulePlugin: CAPPlugin,CAPBridgedPlugin,AVCaptureVideoDataOu
|
|
|
54
54
|
guard let webView = bridge?.webView else { return }
|
|
55
55
|
|
|
56
56
|
webView.isOpaque = true
|
|
57
|
-
webView.backgroundColor = .
|
|
58
|
-
webView.scrollView.backgroundColor = .
|
|
57
|
+
webView.backgroundColor = .black
|
|
58
|
+
webView.scrollView.backgroundColor = .black
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
|
|
@@ -191,7 +191,10 @@ public class CameraModulePlugin: CAPPlugin,CAPBridgedPlugin,AVCaptureVideoDataOu
|
|
|
191
191
|
return
|
|
192
192
|
}
|
|
193
193
|
|
|
194
|
-
container.insertSubview(previewView,
|
|
194
|
+
container.insertSubview(previewView, at: 0)
|
|
195
|
+
webView.layer.zPosition = 1
|
|
196
|
+
previewView.layer.zPosition = 0
|
|
197
|
+
|
|
195
198
|
|
|
196
199
|
NSLayoutConstraint.activate([
|
|
197
200
|
previewView.topAnchor.constraint(equalTo: container.topAnchor),
|