Closed winstonschen closed 4 years ago
Hi @winstonschen,
ImageScannerController
is the main class you should be interacting with and should be declared public. Can you check that it's the case for you?
Yes, ImageScannerController
is indeed public. But I'm building a bunch of features specific to my product and need more fine grained control. (For example, a rapid scanning mode that skips cropping and allow for scanning multiple pages rapidly to create a multi-page document.) In effect I'm writing my own ScannerViewController
, EditViewController
, and ImageScannerController
. I love that WeScan encapsulates many of the details for using the camera as well as cropping, etc. which is why I jumped onboard to use it. And I suspect there're more people in my boat.
Thanks for the clarification @winstonschen. That's indeed a good point. Our framework is not generic at all, and is very hard to use outside of our specific use cases. Do you have any suggestions as to how we could do so?
It's already working reasonably well after I made some of the properties and methods public.
Off the top of my head:
Of course we should keep ScannerViewController, EditScanViewController and ReviewViewController as examples that app developers can use as starting points. But they should not be in the framework.
Sorry for the very long dump... I'm fairly new to contributing to OpenSource and apologize for violating unspoken etiquettes.
@winstonschen we would be open to making the framework more flexible. Would you have the time to implement your suggestion in a pull request?
Might be good to start with the bare minimum, making some of the classes open
instead of public
, allowing you to adjust accordingly.
Let me know your thoughts!
If it helps some of this is already in the under review PR #138
I would be glad to and I can start in a week after I finish an app release. By the way, I've already made significant modifications to this framework and would be happy to contribute.
Is this done? I wanted to use the classes in my app but not able to use it.
This issue is stale because it has been open for 30 days with no activity. Remove the Stale label or comment or this will be closed in 10 days.
I tried to use this as a Pod but use any of the classes because they're not declared public.