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 = .white
58
- webView.scrollView.backgroundColor = .white
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, belowSubview: webView)
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),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "capacitor-camera-module",
3
- "version": "0.0.59",
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",