blinkinput / blinkinput-ios

OCR SDK for iOS powered by MicroBlink
Apache License 2.0
130 stars 26 forks source link

Can I hide the image for flashlight button and display only text `Light`? #42

Closed fatinWasta closed 5 years ago

fatinWasta commented 5 years ago

Can I hide the image for flashlight button and display only text Light? Please refer to the screenshot. blinkid

jcular commented 5 years ago

Hi @fatinWasta,

yes, but not through code. You can find the images used on the overlay in microblink.bundle. You can delete them from bundle and there should be no images on the button. Images that are used for torch button are:

torchon.png
torchoff.png
torchon_pressed.png
torchoff_pressed.png
torchon@2x.png
torchoff@2x.png
torchon_pressed@2x.png
torchoff_pressed@2x.png

Kind regards, Jure

fatinWasta commented 5 years ago

@jcular , Yeah, thanks mate. It worked. But just another issue.. As of now I'm not pushing my pods to git. So if even if i do this change now it won't reflect on remote.. By any chance you can add torchImage.hidden property in you next release..? Or is there any other solution you can provide for now(other than uploading all my pods to git)?

fatinWasta commented 5 years ago

@jcular please have look on my above comment.

jcular commented 5 years ago

I'll have to discuss this with the rest of the team. But one idea is having image properties exposed, and by setting them to nil no images are set no the torch button. This might give you more options in the future if you want to change the image.

fatinWasta commented 5 years ago

Yeah.. that should work.. for now I can't access image..

fatinWasta commented 5 years ago

@jcular can you please update me once you discussed with the team or so.. or if you are gonna update the SDK..

jcular commented 5 years ago

@fatinWasta I discussed this with the rest of the team and the conclusion is that we won't be currently adding this feature since our UI comes as is, as our designers intended it to be. Further, currently, we don't have a close release planned for blinkinput. I would suggest that you implement your own overlay using CustomOverlayViewController, since I can't give you a specific date for the next blinkinput release.

Kind regards, Jure

fatinWasta commented 5 years ago

Oh okay.. Thanks for the response..