capacitor-camera-module 0.0.56 → 0.0.58
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.
|
@@ -50,12 +50,15 @@ public class CameraModulePlugin: CAPPlugin,CAPBridgedPlugin,AVCaptureVideoDataOu
|
|
|
50
50
|
private var galleryCall: CAPPluginCall?
|
|
51
51
|
|
|
52
52
|
// MARK: - Lifecycle
|
|
53
|
-
|
|
54
53
|
public override func load() {
|
|
55
|
-
bridge?.webView
|
|
56
|
-
|
|
54
|
+
guard let webView = bridge?.webView else { return }
|
|
55
|
+
|
|
56
|
+
webView.isOpaque = false
|
|
57
|
+
webView.backgroundColor = .clear
|
|
58
|
+
webView.scrollView.backgroundColor = .clear // 🔑 ESTA ES LA CLAVE
|
|
57
59
|
}
|
|
58
60
|
|
|
61
|
+
|
|
59
62
|
// MARK: - Camera Permission
|
|
60
63
|
|
|
61
64
|
@objc func checkPermission(_ call: CAPPluginCall) {
|
|
@@ -233,10 +236,7 @@ public class CameraModulePlugin: CAPPlugin,CAPBridgedPlugin,AVCaptureVideoDataOu
|
|
|
233
236
|
}
|
|
234
237
|
|
|
235
238
|
|
|
236
|
-
|
|
237
|
-
super.viewDidLayoutSubviews()
|
|
238
|
-
videoPreviewLayer?.frame = previewView?.bounds ?? .zero
|
|
239
|
-
}
|
|
239
|
+
|
|
240
240
|
// MARK: - Flash
|
|
241
241
|
|
|
242
242
|
@objc func toggleFlash(_ call: CAPPluginCall) {
|