Redth / ZXing.Net.Maui

Barcode Scanning for MAUI?
MIT License
434 stars 143 forks source link

Camera window will not display on iOS #153

Closed erickaleida closed 6 months ago

erickaleida commented 6 months ago

Works fine on Android. On iOS iPhone (not an emulator), the camera window never displays. I am prompted by iOS to allow the Camera and click OK. The MAUI view renders, but the camera does not display. There are no error messages and the code can interact with the CameraBarcodeReaderView object on the page. Using version 0.4.0 on MAUI 7. iPhone X with iOS 17.2.1.

erickaleida commented 6 months ago

I actually found that the WidthRequest and HeightRequest is needed in iOS. Once I added those to the CameraBarcodeReaderView, the camera would display.