cordova-plugin-qrscanner icon indicating copy to clipboard operation
cordova-plugin-qrscanner copied to clipboard

[FEATURE] Revert body background back to the original instead of white when calling .hide()

Open W4G1 opened this issue 5 years ago • 4 comments

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.

W4G1 avatar Feb 14 '20 11:02 W4G1

I think it should remove background color style when destroy, i'm having this issue

vukhacbiet avatar May 14 '20 14:05 vukhacbiet

Having the same issue

SayWhat69 avatar Nov 24 '20 09:11 SayWhat69

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.

awatson1978 avatar Mar 24 '21 13:03 awatson1978

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

awatson1978 avatar Mar 24 '21 14:03 awatson1978