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 = false
57
- webView.backgroundColor = .clear
58
- webView.scrollView.backgroundColor = .clear // 🔑 ESTA ES LA CLAVE
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, belowSubview: webView)
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),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "capacitor-camera-module",
3
- "version": "0.0.58",
3
+ "version": "0.0.60",
4
4
  "description": "Plugin to request permissiones view camera take phots",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",