-
-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add an option to modify default camera view #33
Comments
Hey @belyakov-am, Your request was added to our roadmap Thanks for this comment and have a nice day! |
Hey @FulcrumOne Amazing, thanks. Have a nice day too! |
+1 on this. Just hiding some of the fields in the Camera View would be great. I want to disable taking photos, and disable allowing rotating the camera to the front. |
Is there a workaround in the meantime? I tried to build a Custom CameraView that looks identical to the DefaultCameraView expect with a few customizations, but many of the dependent structs are marked I don't want to resort to cloning the library and import it as a local dependency just yet. |
hey @davit-b, Unfortunately there is not; to be honest, I didn't think anyone would want to use the default UI, so I put all the "resources" into making it possible to create your own views. Best regards, |
Oh, if you could that we be amazing. The default UI is really great! So naturally I just want to modify it, that would save me a lot of time. |
Another vote for this one, thank you for considering it. I have an application where I just want to take photos (no videos), so this would support that nicely. |
Hey guys, FYI, I'm having some delays at work, so unfortunately I have to postpone the start of the work to Friday. Best regards, |
Ok, thank you for the update. |
I'm starting my work and will try to deliver something today. |
@davit-b, @splons, @belyakov-am The feature was implemented in branch named Here is an example of how to use it: MCameraController(manager: manager)
.cameraScreen {
DefaultCameraView(cameraManager: $0, namespace: $1, closeControllerAction: $2)
.torchButtonVisible(false)
.outputTypePickerVisible(false)
.flipButtonVisible(false)
} |
Just implemented, it meets all my needs. Thank you so much!! |
Thank you too! I'm closing the issue then. |
Thank you for the fast work on this request! The I tested the other modifiers from your sample code above and found that adding |
Hey @splons, The Flip button is located on the navigation bar - it essentially flips the view from camera horizontally. Have a nice day, |
Hi, could you give me an example for newly changes MCameraScreen? I don't know how to make it work to get same result as I could with previous sample app as below. It's just turning on/off a few options so I think I don't need to define a new custom struct.
|
@tiendq, you can see the methods available in the |
Thank you, it works now. BTW, I believe there is a very minor issue in this line, it should be |
I'm a bit confused on how to set this up after 3.0 patch launched. In my content view, this is what I've tried doing but it doesn't seem to be right.
Thanks in advance for the help! |
It would be nice to be able to hide some buttons from the default camera view
Specifically an option to hide photo / video output buttons
The text was updated successfully, but these errors were encountered: