Replies: 1 comment
-
ts file html scss `ion-content { ion-content::part(scroll) { ion-content::part(background) { .cameraPreview { #cameraPreview { .image-overlay { .placement-text { #capture { |
Beta Was this translation helpful? Give feedback.
-
Describe the bug
The plug in works perfectly and as expected on web or ionic lab with an overlay appearing over the camera preview when toBack is set to true.
Unfortunately when running the app via Xcode, the camera preview does not appear at all. When changing the value of toBack to false, the camera preview appears but the overlay is covered.
Expected behavior
I would expect/hope the plugin would behave the same way on the device via Xcode as it does via Ionic lab/web.
Screenshots
Web
Device
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context
It looks as though the cameraPreview is being treated differently in terms of styling. On web I can effect the styling of the preview (width, length etc) in scss via the class assigned to the cameraPreview in CameraPreviewOptions. On the iOS device I cannot do this at all. The only thing that effects the styling of the cameraPreview are the height, width and positioning settings in CameraPreviewOptions.
Any help will be massively appreciated as this issue has held up my current project for nearly 2 weeks now :(
Beta Was this translation helpful? Give feedback.
All reactions