Open stepkillah opened 9 months ago
Can confirm, the camera view does all sorts of craziness.
A partial workaround is to wrap CameraView
into Frame
and set ClipToBounds = true
, but other issues appear like a black camera view after first scan.
Describe the bug In MAUI version there are some issues with properly displaying
CameraView
.To Reproduce Steps to reproduce the behavior:
CameraView
is overlapping over controlsExpected behavior
CameraView
should be displayed correctly in specified sizes, andPreview
should fill available space, and crop what's out of the bounds. See Xamarin Forms screenshotScreenshots MAUI
Xamarin Forms
![Screenshot_1701624031](https://github.com/JimmyPun610/BarcodeScanner.Mobile/assets/10140906/94eccb01-792e-4ba9-8275-27cdb7edd2d1)
Smartphone (please complete the following information):
Additional context I was trying to find what causes it and created PR to use the new ResolutionSelector, but it didn't fix the issue.
If set
_previewView.SetScaleType(PreviewView.ScaleType.FitCenter)
inCreatePlatformView
- it affects this behavior, but it is not a fix, because it starts to fit the preview instead of fillingKnown workarounds
Wrap CameraView into
Frame
and setClipToBounds = true
, but other issues appear like black camera view after the first scan.