cordova-plugin-qrscanner
cordova-plugin-qrscanner copied to clipboard
[FEATURE] Revert body background back to the original instead of white when calling .hide()
Not a bug, but a feature request.
After calling .show() & .hide() the body background is set to white instead of its original background. Why not save the original body background first when calling .show() and revert it back when .hide() is called so the body keeps it original style?
I don't think this would be a very hard thing to implement.
I think it should remove background color style when destroy, i'm having this issue
Having the same issue
Also having this problem. On iPhone X and 11, which have the unsafe viewport areas and the 'notch' , a portion of the background camera is visible while the rest of the app renders normally. And when the QRScanner is destroyed, the spillover area becomes white instead of matching the header/footer borders. Needs to be a color parameter passed into the QRSettings as a config.
Digging through the code, I'm wondering if there's a way to set or override UIColor.clear
https://github.com/bitpay/cordova-plugin-qrscanner/blob/master/src/ios/QRScanner.swift#L201