yeahdongcn / RSBarcodes_Swift

1D and 2D barcodes reader and generators for iOS 8 with delightful controls. Now Swift.
MIT License
710 stars 185 forks source link

Add scan area change (videoPreviewLayer frame change?) when keyboard is shown #110

Open IVANKRUPSKI opened 7 years ago

IVANKRUPSKI commented 7 years ago

Is it possible to add in the code scan area change when keyboard is shown?

The problem is connected only to the barCodes (e.g. EAN13 and similar), because these codes are scanned only when the code appears in the middle of the screen.

That would be reasonable to move scan area up together with the keyboard, as visually the middle of the camera window moves up in this case.

Alternatively, making barCodes (e.g. EAN13 and similar) possible to be scanned from any part of the screen, could also solve this issue.