capacitor-camera-module 0.0.58 → 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.
|
@@ -53,12 +53,13 @@ public class CameraModulePlugin: CAPPlugin,CAPBridgedPlugin,AVCaptureVideoDataOu
|
|
|
53
53
|
public override func load() {
|
|
54
54
|
guard let webView = bridge?.webView else { return }
|
|
55
55
|
|
|
56
|
-
webView.isOpaque =
|
|
57
|
-
webView.backgroundColor = .
|
|
58
|
-
webView.scrollView.backgroundColor = .
|
|
56
|
+
webView.isOpaque = true
|
|
57
|
+
webView.backgroundColor = .black
|
|
58
|
+
webView.scrollView.backgroundColor = .black
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
|
|
62
|
+
|
|
62
63
|
// MARK: - Camera Permission
|
|
63
64
|
|
|
64
65
|
@objc func checkPermission(_ call: CAPPluginCall) {
|
|
@@ -190,7 +191,10 @@ public class CameraModulePlugin: CAPPlugin,CAPBridgedPlugin,AVCaptureVideoDataOu
|
|
|
190
191
|
return
|
|
191
192
|
}
|
|
192
193
|
|
|
193
|
-
container.insertSubview(previewView,
|
|
194
|
+
container.insertSubview(previewView, at: 0)
|
|
195
|
+
webView.layer.zPosition = 1
|
|
196
|
+
previewView.layer.zPosition = 0
|
|
197
|
+
|
|
194
198
|
|
|
195
199
|
NSLayoutConstraint.activate([
|
|
196
200
|
previewView.topAnchor.constraint(equalTo: container.topAnchor),
|